Price is simple.
There is a Base rate e.g. 4$.
There is an Hourly rate e.g. 6$ for 1 hour. means 0.1 $ per minute.
Then there is km rate. e.g. 2$ per km.
After that, there is a Company Service Fee in percentage i.e. convenience fee e.g. 5%
and there is also a minimum fare to be paid even if going till next corner. e.g 15$ minimum
And finally, there is a discount of promo % or flat number
Let's assume a parcel to be delivered which has a size and weight and require 30 mins and will take a distance of 3 km So the Calculation is.
Fare = Base Fare + ( hourly Rate * time ) + ( Km rate * kms ) = 4 + ( 30 * 0.1 ) + ( 2 * 3 ) = 4 + 3 + 6 = 13$
Now, If there are parcel types and other options set from the Admin Panel like in the case of delivery Apps. Then those will be added.
13$ + 0.5$ for Size + 0.5$ for e.g. weight = 14$
Now, Minimum Fare is 15$. 14$ is less, so the customer will be billed for 15$
Note: Above is the money which will be the driver earning from a trip. Now comes a 5% convenience fee or the App owner commission on top of that, which is
15$ + 5% of 15$ = 15.75$
Finally, the person got a promo discount of 10% discount means Note: The discount goes from App owners pocket. 15.75$ - (10% of 15.75) = 14.175$ = 14.18$ round is the final paymentHe can pay partial from Wallet and rest by Card or fully from Wallet / Card There is a difference between the estimate and actual is because you are not travelling men actual while testing. The hourly fee should be very less and km fee should be the main fee. Then things will seem logical.