A day is midnight to midnight. One 5 minute train ride counts for a full day as does spending the entire day hopping from train to train. You also have the allowance to travel into the following day on any train that you board before midnight for as long as that journey takes.