Challenge: Rocket Fuel Play Time

Designer wants play time to be 120 before running out of fuel.

m = maxFuel
b = burnRate
c = currentFuel
t = time

t = 120, c = 0

If m = 100:
b = (c - m) / -t
b = (0 - 100) / -120
b = -100/-120
b = 0.8

If b = 2
m = c + bt
m = 0 + 2(120)
m = 240

1 Like