Upset stomach w cramps?

Past few days I've had bad cramps on & off (usually worst at night) but I've been getting an upset stomach also. Idk if its a virus or because my period is wed?