Gas can stay trapped for a few hours. If the discomfort or pain during that period is unbearable, see your doctor.