Fix method of calculating the time differential.