Calculation of train travel time