Calculations Using the Ideal Gas Equation