Calculating Gas Properties