The calculation is: litres / distance * 100 = l/100km. For example: 57 litres / 635 km * 100 = 8.98l/100km. If you know the price of fuel, then you can simply multiply the price per litre by the result and that gives you your cost per 100km.