How is the price of an Uber ride calculated?

The price of an Uber ride is calculated based on supply and demand while considering the time, distance, and destination of the trip.