How to apply the fuel cost formula of a trip:
Distance in km * (average consumption/100) = Total in consumed litres
Total consumed litres * Fuel price = Total fuel cost
For example, a journey of 560 km, a consumption of 10 L / 100 km and a cost of $ 1.25 per litre of gasoline at the pump.
560 * (10/100) = 22.5 litres
22.5 * 1.25$ = 70$