Working while menstruating

I have pretty bad cramps but I still got work that needs to be finished by tomorrow and the pain makes me lack motivation. What do you guys do in this kind of situations? And I can't take painkillers because they won't work on me