// basic formula evaluator