I am having extreme period cramps and diarrhea BUT

I’m not on my period…? My period isn’t due for another week and a half. This started two days ago and I’m miserable. I also am so bloated and gassy like my stomach is sticking way out. What’s going on? Never had this before.