Hi Ced,
The general logic here is to find out all the costs that you want to take into account (labor costs, all direct expenses, management expenses) and divide by the number of miles/deliveries. You can also find some ready to use logistics KPIs here.