Ovulation pain

Do you get ovulation pain before or after ovulation?