Comment 6 for bug 159066

Revision history for this message
Richard Barrington (richard-freedomwigs) wrote : Re: car cost fail

I will "second" this bug.

The calculation appears to assume the tank starts at 0L, however this is very unlikely to happen... who runs their car dry? Or maybe it's an out-by-one error somewhere...

Anyway, I think the first entry into the list should not be calculated, it should be used as a reference to calculate the difference for the following entry.

Eg, the first line:
18/11/07, 203731 km, 45.28 l, $1.74, $-78.75, 349 km, 12.97L

is incorrect, because the distance I had travelled at that time was 0 km, so there should be no Dist. and no 100 Km values.

30/11/07, 204080 km, 46.74 l, $1.75, $-81.65, -, -

is incorrect, because I had travelled 349 km since the last fill, which should be in the Dist. field, and the L/100 Km value should be calculated.

My actual consumption should be 13.39 L/100 km in the second row ((46.74 L / 349 km) * 100), not the 12.97 L/100 km calculated in the first row.

Richard