The module includes a pack of functions to improve the implementation of financial equations.
Operation | Description | Demo |
CALCULATEPAYMENT(x,y,z) | Calculate the Financed Payment Amount |
Ex: CALCULATEPAYMENT(25000, 60, 5.25) |
CALCULATEAMOUNT(x,y,z) | Calculate the Financed Amount |
Ex: CALCULATEAMOUNT(60, 5.25, 474.65) |
CALCULATEMONTHS(x,y,z) | Calculate the Months Financed |
Ex: CALCULATEMONTHS(25000, 5.25, 474.65) |
CALCULATEINTEREST(x,y,z) | Calculate the Financed Interest Rate |
Ex: CALCULATEINTEREST(25000, 60, 474.65) |
CALCULATEACCRUEDINTEREST(x,y,z) | Calculate the Accrued Interest |
Ex: CALCULATEACCRUEDINTEREST(25000, 60, 5.25) |
CALCULATEAMORTIZATION(x,y,z,date) | Create Amortization Schedule |
Ex: CALCULATEAMORTIZATION(25000, 60, 5.25, new Date(2011,11,20) ) |
PRESENTVALUE(x,y,z) | Returns the present value of an investment |
Ex: PRESENTVALUE(0.08,5,100) |
FUTUREVALUE(v,w,x,y,z) | Returns an investment based on an interest rate and a constant payment schedule. Five parameters: The interest rate for the investment, the number of payments for the annuity, the amount of the payment made each period, the present value of the payments (if this parameter is omitted, it assumes to be 0), parameter that indicates when the payments are due (if this parameter is omitted, it assumes to be 0. The possible values are: 0 - Payments are due at the end of the period, 1 - Payments are due at the beginning of the period) |
Ex: FUTUREVALUE(7.5/12,24,-250,-5000,1) |
PMT(Rate,NPer,PV,FV,TYPE) | Returns the periodic payment for an annuity with constant interest rates Rate is the periodic interest rate. |
Ex: PMT(1.99/12,36,25000) Result: -715.96 |
Format a Number One parameters: number Ex:NUMBERFORMAT(-2530023420269.123456) Ex: NUMBERFORMAT(25000.123456, {precision:2}) Format Currency Format a number to a certain currency. Two parameters: number, settings (optional). If settings option is a string it is treated as a currency name. If it is an object it is used as currency settings. Ex: NUMBERFORMAT(25000.123456, 'USD') Settings can be format, and then override with options. Ex: NUMBERFORMAT(-25000.123456, 'GBP', { negative: '()', precision: 3, thousand: '' }) Format a Percent Format a number with a certain precision. Two parameters: number, settings ("percent" is a format) Ex: NUMBERFORMAT(25000.123456, 'percent') |
||
Create a Currency You may create a currency. The library comes with "USD", "GBP", and "EUR" currency formats and "number" and "percent" numeric formats. Two parameters: key, settings Ex: ADDFORMAT('Dollars', { before: '', after: ' Dollars', precision: 0, thousand: ',', group: 3, decimal: '.', negative: '-' }) Ex: NUMBERFORMAT(25000.123456, 'Dollars') |
||
REMOVEFORMAT(x) | Remove a Currency |
Ex: REMOVEFORMAT('Dollars') |