Comment 9 for bug 159066

Revision history for this message
Maxime DOYEN (mdoyen) wrote : Re: car cost fail

Well... I agree with you. I though I have found the magic formula, but it's just only a specific case that works well with it.

In fact the main trouble is that computing average 100km consumption can only work if you do full refuel everytime.
So that still a problem. Whatever we can do it will never be exact.

Let's for example imagine someone never doing full refuel (I know some) then how we can compute? the results will always be false !

I have googled trying to find a sympathic mathematical algorithm to solve the problem with no success. All the things I have found uses the common rule of three and need a full refuel each time to be correct (and it's logical in a way).

I should think again to my proposal above on 2007-11-11, that was to sum distance and refuel and then compute an average, it is not exact but it should work in every case.
I think we should resign that 100km consumption value to be an estimation.

The important thing is most the distance you have made between each refuel and how much it costs you, isn't it ?

Maxime.