when do I know if it's time to go to the hospital

Nayeli
I'm currently 39 weeks and 6 days and have been having pains all day since 1 pm. Right now they're about 3-3 and a half minutes apart lasting about 50 seconds.