Returns the fare for a journey at the given time.
time
double fareAtTime(DateTime time) => isPeakTime(time) ? duringPeakTime : offPeakTime;