Calculate the CO2 production