Partial pressure and total pressure calculation