Mass percent calculation and gas volume calculation