Refactored numeric formulas so every existing numeric formula will catch
any ArithmeticException or NumberFormatExcpetion thrown during
calculation and rethrow it wrapped in a FormulaException.