5.17.1 Function To Compute Gas Volume