The trip fare is calculated by summing up:

  1. Distance: total Kilometers traveled.

  2. Time: total minutes traveled.

  3. Base Fare: the amount the ride starts at.

The payment is thus calculated as: ((base fare + time rate + distance rate).