Distance and Height Formulas