I am pretty sure my code is right in terms of formulas and logic