You have to include the partial Liters into the calc otherwise the km/L will be incorrect on the full fuel up.
The formula is easy:
KM: Current full fuel up ODO - Previous Full fuel up ODO = total KMs over all fuel ups
Liters: Current full fuel up Liters + liters for all partial fuel ups since previous full fuel up.
Then it is just KM / Liters.
This is then only stored and showed next to the Full fuel up.
|