Formula Solver: Error in HandySum-Code