Let ovary pain

I am having overy pain really bad could come one tell me why my period is due in like 4 days so it's not ovulation what could it be