Add a method calculate the distance

Add a method to the Train class to calculate the distance based on the duration