How can I automatically calculate the trip distance?

By enabling and using Oracle Maps. When your company enables Oracle Maps for your business unit, you can enter trip start location, subsequent stops, and your destination location to determine trip distance.

Trip distance is the distance you travel, which is used to calculate mileage reimbursement. If your company mileage policy requires you to deduct commute mileage between home and office, then the basic formula is: Trip distance = (Total Distance) - (Commute Distance).