Correcting code to make the formulas work correctly
fixing code to run properly