I'm not sure how it calculates anything. But I can tell you its not very accurate.
I let both the gas gauge needle get to empty and the range said 10 km (6 miles), and it took 30 liters to fill (8 gallons)
Based on my millage, I should be able to go another 200-300 kms (300 if I REALLY push it). (124-185 miles)