Gas mixing formulas