Ovulation pains??

How many days before you ovulate so you start getting cramps?? Or do you only get cramps the day you ovulate? I never used to notice when I was ovulating but now I notice that I get really bloated and have bad cramps for a day 2 weeks before my period.