Ovulation???

How many days befored your period do you ovulate? I've read that I was 14 days, but the past two cycles I've been cramping a week before