In order to make things easier we create a function to calculate the distance travelled by a reindeer at any arbitrary time.