Calculate how much each person in the car owes for the ride share. You must know the distance, how much your car consumes, what’s the gas price and how many people are in the car. Input all of that and it will return price / person for the ride share.