How to calculate dollars per mile
Divide the total pay by all the miles: the drive to the pickup plus the trip itself. $12 for 2 pickup miles and 6 trip miles is $12 / 8 = $1.50 per mile. Dividing by the trip miles only would show $2.00 and hide the real rate.
What is a good rate?
Most cars cost $0.30 to $0.60 per mile to run. Many drivers decline anything under about $1.50 per mile and treat $2.00 or more as a good offer. Read more in How much should Uber pay per mile? and What does a mile really cost?
DoorDash offers
DoorDash shows the guaranteed pay and the total miles of the delivery. Enter both above, with the drive to the restaurant counted in the miles. See DoorDash: how much per mile is a good offer?
Why per hour matters too
A trip can pay well per mile but take a long time in traffic or at a restaurant. Check both numbers: dollars per mile and dollars per hour after car costs.