The formula used to calculate the carbon emission from petrol consumption is based on the following assumptions:
- The carbon content of petrol is approximately 2.31 kg CO2 per litre of petrol.
- The average fuel efficiency of a car is approximately 10.4 litres per 100 km.
- The distance travelled is provided by the user in kilometers.
Based on these assumptions, the formula used is:
Carbon Emission = (Petrol Consumption in litres) x (2.31 kg CO2/litre) x (1/1000) x (100) / (Distance Travelled in km)
This formula calculates the carbon emission in grams per kilometer travelled.