Gas pressure and volume calculations