This fuel calculator is designed to help racers determine how much fuel they will need for a race. It uses the inputs of race time, lap time, fuel consumption per lap, and a fuel reserve to calculate the total amount of fuel needed. The code is written in HTML, JavaScript and CSS.
Required Fuel = ⌈(Race Time x 60 / Lap Time)⌉ x Fuel Consumption per Lap + Fuel Reserve