Relationship between time and distance on the train