1
General Discussion / Re: Fuel Burn
« on: October 03, 2018, 01:48:21 am »I adapted this equation directly from the game code:
loadfactor = sold seats / capacity
if link duration < 90min
ascend, descendtime = (link duration / 2)
fuelburn * 10 * ascendtime + fuelburn * descendtime * 0.08 * frequency
else #fuel burn is higher for the first 60min
((fuelburn * 10 * 45 + fuelburn * (linkduration - 30)) * 0.08 * frequency) * (0.7 + 0.3 * loadfactor)
Using your example: CS100 with a fuel burn of 438 on a 7h34m flight (454m) (1 flight = frequency of 1)
It's longer than 90min, so we use the 2nd equation=
((438 * 10 * 45 + 438 * (454 - 30)) * 0.08 * 1) * (0.7 + 0.3 * 1) = $30624,96
First off, thanks! That's great. Secondly, where did you get access to the game code from!? I've been trying to hunt down the backend code but couldn't find anything accessible...