Advil after alcohol?

Okay so I just had a glass of wine and I went to the bathroom and realized I just started my period. I get really bad cramps so I'm wondering when it would be safe to take 1 Advil.