juanro49 / autu-mandu

Autu Mandu te permite controlar ingresos y gastos de tus vehículos y mostrarlos en bonitos informes.
Apache License 2.0
13 stars 0 forks source link

Entering 0 Litres when refueling #8

Open stormjk2 opened 2 months ago

stormjk2 commented 2 months ago

I have the case that I sometimes lend my car filled up and get it back refueled. That means I only know the driven kilometres but not how many litres were refueled and how much was paid for it. I want to enter the kilometres so that the app correctly calculates following fuel consumption. It is possible to enter 0 money but not 0 litres. If it is technically possible, that would be a great feature I guess.

Thank you very much for keeping this app alive!

juanro49 commented 2 months ago

Hello!

The problem is that it would alter the consumption and cost averages, i.e., in this case, you would have travelled, for example, 100km, with a consumption of 0L and 0€.

Therefore, if in the next refueling you do 100km, with a cost of 7L and 10.50€, the average of 200km would be with a consumption of 3.5L/100km and 5.25€/100km, which would not be real.

I think it would be more appropriate to look at prices at a nearby petrol station, and using the average consumption available in the report graphs, calculate how many litres could be filled up and the cost. It would not be an exact calculation, but I think it would be more appropriate and would maintain the accuracy of the data better than the method you propose 😋 .

stormjk2 commented 2 months ago

Hi and thanks for your answer! Maybe it is just my special problem - or preference. But thanks for looking into this!

The solution I am proposing is to have an option to exclude those kilometres from the overall calculation. Such an option would also be suitable if you just forget to write down the cost and consumption for a certain amount of time.

I would prefer that over adding average numbers that I don't know to be true or not. Even if I had the exact numbers, another driver (as in my case) could drive more (or less) fuel efficient and that could distort my stats.

juanro49 commented 2 months ago

Hi and thanks for your answer! Maybe it is just my special problem - or preference. But thanks for looking into this!

The solution I am proposing is to have an option to exclude those kilometres from the overall calculation. Such an option would also be suitable if you just forget to write down the cost and consumption for a certain amount of time.

I would prefer that over adding average numbers that I don't know to be true or not. Even if I had the exact numbers, another driver (as in my case) could drive more (or less) fuel efficient and that could distort my stats.

The option to exclude those kilometres is interesting, I can evaluate and implement it.

stormjk2 commented 2 months ago

Thanks a lot :-)