Function To Compute Gas Volume