Add LineIds and Formulas
Finish getFormula method