Colgroup Tag |
---|
columnpadding0px |
Table Body (tbody) |
---|
id | addCompoundPeriodChange-Number_Date |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
addCompoundPeriodChange |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Span |
---|
| addCompoundPeriodChange |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Div |
---|
| Adds a compound period change. |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Parameters |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Sample Div |
---|
| Code Block |
---|
|
var c = plugins.amortization.newCalculation();
c.addRateChange(r, new Date(2005, 0, 1));
c.addCompoundPeriodChange(12, new Date(2005, 0, 1));
c.addLoan(2000, new Date(2005, 0, 1));
c.addPayment(500, new Date(2005, 1, 28), null, 12, 5, 31);
|
|
|
|
|
Table Body (tbody) |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
Parameters |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Sample Div |
---|
| Code Block |
---|
|
var c = plugins.amortization.newCalculation();
c.addRateChange(r, new Date(2005, 0, 1));
c.addCompoundPeriodChange(12, new Date(2005, 0, 1));
c.addLoan(2000, new Date(2005, 0, 1));
c.addPayment(500, new Date(2005, 1, 28), null, 12, 5, 31);
|
|
|
|
|
Table Body (tbody) |
---|
id | addLoan-Number_Date_Date_Number |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
Span |
---|
(amount, firstDate, lastDate, period) |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Parameters |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Sample Div |
---|
| Code Block |
---|
|
var c = plugins.amortization.newCalculation();
c.addRateChange(r, new Date(2005, 0, 1));
c.addCompoundPeriodChange(12, new Date(2005, 0, 1));
c.addLoan(2000, new Date(2005, 0, 1));
c.addPayment(500, new Date(2005, 1, 28), null, 12, 5, 31);
|
|
|
|
|
Table Body (tbody) |
---|
id | addLoan-Number_Date_Date_Number_Number |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
Span |
---|
(amount, firstDate, lastDate, period, number) |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Parameters |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Sample Div |
---|
| Code Block |
---|
|
var c = plugins.amortization.newCalculation();
c.addRateChange(r, new Date(2005, 0, 1));
c.addCompoundPeriodChange(12, new Date(2005, 0, 1));
c.addLoan(2000, new Date(2005, 0, 1));
c.addPayment(500, new Date(2005, 1, 28), null, 12, 5, 31);
|
|
|
|
|
Table Body (tbody) |
---|
id | addLoan-Number_Date_Date_Number_Number_Number |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
Span |
---|
(amount, firstDate, lastDate, period, number, startday) |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Parameters |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Sample Div |
---|
| Code Block |
---|
|
var c = plugins.amortization.newCalculation();
c.addRateChange(r, new Date(2005, 0, 1));
c.addCompoundPeriodChange(12, new Date(2005, 0, 1));
c.addLoan(2000, new Date(2005, 0, 1));
c.addPayment(500, new Date(2005, 1, 28), null, 12, 5, 31);
|
|
|
|
|
Table Body (tbody) |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
addPayment |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Parameters |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Sample Div |
---|
| Code Block |
---|
|
var c = plugins.amortization.newCalculation();
c.addRateChange(r, new Date(2005, 0, 1));
c.addCompoundPeriodChange(12, new Date(2005, 0, 1));
c.addLoan(2000, new Date(2005, 0, 1));
c.addPayment(500, new Date(2005, 1, 28), null, 12, 5, 31);
|
|
|
|
|
Table Body (tbody) |
---|
id | addPayment-Number_Date_Date_Number |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
addPayment |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Span |
---|
(amount, firstDate, lastDate, period) |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Parameters |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Sample Div |
---|
| Code Block |
---|
|
var c = plugins.amortization.newCalculation();
c.addRateChange(r, new Date(2005, 0, 1));
c.addCompoundPeriodChange(12, new Date(2005, 0, 1));
c.addLoan(2000, new Date(2005, 0, 1));
c.addPayment(500, new Date(2005, 1, 28), null, 12, 5, 31);
|
|
|
|
|
Table Body (tbody) |
---|
id | addPayment-Number_Date_Date_Number_Number |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
addPayment |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Span |
---|
(amount, firstDate, lastDate, period, number) |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Parameters |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Sample Div |
---|
| Code Block |
---|
|
var c = plugins.amortization.newCalculation();
c.addRateChange(r, new Date(2005, 0, 1));
c.addCompoundPeriodChange(12, new Date(2005, 0, 1));
c.addLoan(2000, new Date(2005, 0, 1));
c.addPayment(500, new Date(2005, 1, 28), null, 12, 5, 31);
|
|
|
|
|
Table Body (tbody) |
---|
id | addPayment-Number_Date_Date_Number_Number_Number |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
addPayment |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Span |
---|
(amount, firstDate, lastDate, period, number, startday) |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Parameters |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Sample Div |
---|
| Code Block |
---|
|
var c = plugins.amortization.newCalculation();
c.addRateChange(r, new Date(2005, 0, 1));
c.addCompoundPeriodChange(12, new Date(2005, 0, 1));
c.addLoan(2000, new Date(2005, 0, 1));
c.addPayment(500, new Date(2005, 1, 28), null, 12, 5, 31);
|
|
|
|
|
Table Body (tbody) |
---|
id | addRateChange-Number_Date |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
addRateChange |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Div |
---|
| Sets a new interest rate. |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Parameters |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Sample Div |
---|
| Code Block |
---|
|
var c = plugins.amortization.newCalculation();
c.addRateChange(r, new Date(2005, 0, 1));
c.addCompoundPeriodChange(12, new Date(2005, 0, 1));
c.addLoan(2000, new Date(2005, 0, 1));
c.addPayment(500, new Date(2005, 1, 28), null, 12, 5, 31);
|
|
|
|
|
Table Body (tbody) |
---|
id | calculateAmortizationSchedule |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
calculateAmortizationSchedule |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Span |
---|
| calculateAmortizationSchedule |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Div |
---|
| Calculates the amortization schedule. |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Sample Div |
---|
| Code Block |
---|
|
plugins.amortization.calculateAmortizationSchedule();
|
|
|
|
|
Table Body (tbody) |
---|
id | getAmortizationSchedule |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
getAmortizationSchedule |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Span |
---|
| getAmortizationSchedule |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Div |
---|
| Gets the amortization schedule as a JSDataSet. |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Sample Div |
---|
| Code Block |
---|
|
plugins.amortization.getAmortizationSchedule();
|
|
|
|
|
Table Body (tbody) |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
Div |
---|
| Returns the error that remains when solving for the unknown. Please note that the error should be less or equal to 1E-8 - otherwise, the solveForUnknown value is incorrect. |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Sample Div |
---|
| Code Block |
---|
|
var c = plugins.amortization.newCalculation();
// sets the rate to -1 for unknown.
c.addRateChange(-1, new Date(2005, 0, 1));
c.addCompoundPeriodChange(12, new Date(2005, 0, 1));
c.addLoan(2000, new Date(2005, 0, 1));
var lastDate = null;
var period = 12;
var number_count = 5;
var startday = 31;
c.addPayment(500, new Date(2005, 1, 28), lastDate, period,number_count, startday);
// solves for the interest rate.
c.solveForUnknown();
// gets the interest rate and the error in the calculation.
// which should be small (otherwise the calculation did
// not converge for some reason.
var r = c.getUnknown();
var e = c.getError();
|
|
|
|
|
Table Body (tbody) |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
Div |
---|
| Returns all the amortization events - such as rate changes, loan events, payment events, compounding period changes. |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Sample Div |
---|
| Code Block |
---|
|
plugins.amortization.getEvents();
|
|
|
|
|
Table Body (tbody) |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
getRestBalance |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Div |
---|
| Gets the rest balance after the amortization schedule. |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Sample Div |
---|
| Code Block |
---|
|
var rb = plugins.amortization.getRestBalance();
|
|
|
|
|
Table Body (tbody) |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
getUnknown |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Div |
---|
| Returns the solveForUnknown value. |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Sample Div |
---|
| Code Block |
---|
|
plugins.amortization.getUnknown();
|
|
|
|
|
Table Body (tbody) |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
isValidPeriod |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Div |
---|
| Returns true if the period is valid, or false if the period is not valid. |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Parameters |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Sample Div |
---|
| Code Block |
---|
|
var v_period = plugins.amortization.isValidPeriod(12);
|
|
|
|
|
Table Body (tbody) |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
roundMoney |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Div |
---|
| Rounds a number up to the nearest cents. |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Parameters |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Sample Div |
---|
| Code Block |
---|
|
//rounds the number up to 34.35
var rm = plugins.amortization.roundMoney(34.349384);
|
|
|
|
|
Table Body (tbody) |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
solveForUnknown |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Div |
---|
| Returns true if successful or false if the call failed. |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Sample Div |
---|
| Code Block |
---|
|
plugins.amortization.solveForUnknown();
|
|
|
|
|
Table Body (tbody) |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
sortEvents |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Div |
---|
| Sorts the amortization events ascending by date. |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Sample Div |
---|
| Code Block |
---|
|
plugins.amortization.sortEvents();
|
|
|
|
|
|