Cramps!!!

So every couple months when I get my period I get these really terrible cramps. I always get cramps but when it’s like this I can’t leave my house. I end up having to miss classes and work because of it for 1-3 days at a time.

It’s not every month when I get my period it’s once every few months. Any ideas why it’s like this? Suggestions ?