It depends on your condition. For instance, stomach pain due to menstrual cramps can last till the duration of your period, while if you have gas, it may only last a while.