Working out formulas

Working out formulas and alerts