Calculation of gas volume produced