A lot of factors come into play here, depending upon:
a) each individual's rate of metabolism
b) type of diet - some high-protein foods like meat take longer to digest, whereas fruit, vegetables, juices digest faster
c) activity/exercise speeds up digestion
d) water/fluid intake
Although I have a BM at least once every day, evacuation is seldom complete which causes gas and bloating. I have noticed that exercise, high fibre diet, and some teas help with evacuation. Increasing my water intake has helped a lot with flushing out the digestive tract.
It also helps to eat early in the evening (around 6 - 7 p.m.) to enable some digestion as a result of moderate activity before going to bed. Sleeping on a full stomach always causes me grief the next morning.