Work out ride share fare split instantly with clear inputs, formula shown and shareable results.
The fair split charges everyone an equal share of the base journey and puts the detour cost on the person who caused it. That is more defensible than an even split, which makes the direct-route passengers subsidise the diversion.
Ride share split
standard share = (fare + tip - detour cost) / passengers; detour passenger adds the detour cost
Yes, it is for the whole journey. Adding it to the base before splitting is the simplest approach.
Attribute each to its passenger and remove all of them from the shared base before dividing.