Determining Units In Formulas