Got shitty arithmetic formulas working