/* Decoded by unphp.net */
var _0x7ac7 = ["keyup", ".calculator input", "change", ".calculator select", "January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December", ".", "split", "", ",", "length", "slice", "join", "replace", "val", ".calculator .amount", ".calculator .length", ".calculator .rate", ".calculator .deposit", ".calculator .residual", ".calculator .freq", "pow", "0", "round", "html", ".calc_repayment span.dynamic", ".calc_totalrepaym span.dynamic", ".calc_interestpaid span.dynamic", ".calc_balanceremain span.dynamic", ".calculator .month", ".calculator .year", "
Month |
Balance |
Payment |
Principal |
Interest |
", "toFixed", "
", " ", " |
$", " |
", "
Balloon |
$", " |
$0 |
", "
|
|
$", " |
$", " |
", "Amortization Schedule", "h3#amortization-header", "#total_interest", "table#amortization"];
DIGIT_PRECISION = 2;
jQuery(_0x7ac7[1])[_0x7ac7[0]](function() {
calc_run()
});
jQuery(_0x7ac7[3])[_0x7ac7[2]](function() {
calc_run()
});
function convert_month(_0x7166x2) {
if (_0x7166x2 == 1) {
_0x7166x2 = _0x7ac7[4]
} else {
if (_0x7166x2 == 2) {
_0x7166x2 = _0x7ac7[5]
} else {
if (_0x7166x2 == 3) {
_0x7166x2 = _0x7ac7[6]
} else {
if (_0x7166x2 == 4) {
_0x7166x2 = _0x7ac7[7]
} else {
if (_0x7166x2 == 5) {
_0x7166x2 = _0x7ac7[8]
} else {
if (_0x7166x2 == 6) {
_0x7166x2 = _0x7ac7[9]
} else {
if (_0x7166x2 == 7) {
_0x7166x2 = _0x7ac7[10]
} else {
if (_0x7166x2 == 8) {
_0x7166x2 = _0x7ac7[11]
} else {
if (_0x7166x2 == 9) {
_0x7166x2 = _0x7ac7[12]
} else {
if (_0x7166x2 == 10) {
_0x7166x2 = _0x7ac7[13]
} else {
if (_0x7166x2 == 11) {
_0x7166x2 = _0x7ac7[14]
} else {
if (_0x7166x2 == 12) {
_0x7166x2 = _0x7ac7[15]
}
}
}
}
}
}
}
}
}
}
}
}
;return _0x7166x2
}
function localeString(_0x7166x4, _0x7166x5, _0x7166x6) {
var _0x7166x7 = (_0x7ac7[18] + _0x7166x4)[_0x7ac7[17]](_0x7ac7[16]), _0x7166x8 = _0x7ac7[18], _0x7166x9, _0x7166xa;
_0x7166x5 || (_0x7166x5 = _0x7ac7[19]);
_0x7166x6 || _0x7166x6 === 0 || (_0x7166x6 = 3);
_0x7166x9 = _0x7166x7[0][_0x7ac7[20]];
while (_0x7166x9 > _0x7166x6) {
_0x7166xa = _0x7166x9 - _0x7166x6;
_0x7166x8 = _0x7166x5 + _0x7166x7[0][_0x7ac7[21]](_0x7166xa, _0x7166x9) + _0x7166x8;
_0x7166x9 = _0x7166xa
}
;_0x7166x8 = _0x7166x7[0][_0x7ac7[21]](0, _0x7166x9) + _0x7166x8;
_0x7166x7[0] = _0x7166x8;
return _0x7166x7[_0x7ac7[22]](_0x7ac7[16])
}
function calc_run() {
var _0x7166xc = jQuery(_0x7ac7[25])[_0x7ac7[24]]()[_0x7ac7[23]](/\$\,\%\-/g, _0x7ac7[18]);
_0x7166xc = Number(_0x7166xc[_0x7ac7[23]](/[^0-9\.]+/g, _0x7ac7[18]));
var _0x7166xd = jQuery(_0x7ac7[26])[_0x7ac7[24]]();
var _0x7166xe = jQuery(_0x7ac7[27])[_0x7ac7[24]]();
_0x7166xe = Number(_0x7166xe[_0x7ac7[23]](/[^0-9\.]+/g, _0x7ac7[18]));
var _0x7166xf = jQuery(_0x7ac7[28])[_0x7ac7[24]]();
_0x7166xf = Number(_0x7166xf[_0x7ac7[23]](/[^0-9\.]+/g, _0x7ac7[18]));
var _0x7166x10 = jQuery(_0x7ac7[29])[_0x7ac7[24]]();
_0x7166x10 = Number(_0x7166x10[_0x7ac7[23]](/[^0-9\.]+/g, _0x7ac7[18]));
var _0x7166x11 = jQuery(_0x7ac7[30])[_0x7ac7[24]]();
var _0x7166x12 = false;
if (_0x7166xc == false || _0x7166xd == false || _0x7166xe == false) {
_0x7166x12 = true
}
;if (_0x7166x12 == false) {
var _0x7166x13 = _0x7166xe / 1200;
var _0x7166x14 = _0x7166xe / 12;
var _0x7166x15 = _0x7166xd * 12;
var _0x7166x16 = Math[_0x7ac7[31]]((1 + _0x7166x13), _0x7166x15);
var _0x7166x17 = ((_0x7166xc - _0x7166xf) * _0x7166x13) * _0x7166x16;
_0x7166x17 = _0x7166x17 - (_0x7166x10 * _0x7166x13);
var _0x7166x18 = _0x7166x16 - 1;
var _0x7166x19 = _0x7166x17 / _0x7166x18;
if (_0x7166x10 == _0x7ac7[18]) {
_0x7166x10 = _0x7ac7[32]
}
;total_repayments = _0x7166xd * _0x7166x11;
interestpaid = ((_0x7166x19 * _0x7166x15) + _0x7166x10) - _0x7166xc;
interestpaid = Math[_0x7ac7[33]](interestpaid);
_0x7166x19 = Math[_0x7ac7[33]](_0x7166x19);
jQuery(_0x7ac7[35])[_0x7ac7[34]](_0x7166x19);
jQuery(_0x7ac7[36])[_0x7ac7[34]](total_repayments);
jQuery(_0x7ac7[37])[_0x7ac7[34]](interestpaid);
jQuery(_0x7ac7[38])[_0x7ac7[34]](_0x7166x10)
} else {
jQuery(_0x7ac7[35])[_0x7ac7[34]](_0x7ac7[18]);
jQuery(_0x7ac7[36])[_0x7ac7[34]](_0x7ac7[18]);
jQuery(_0x7ac7[37])[_0x7ac7[34]](_0x7ac7[18]);
jQuery(_0x7ac7[38])[_0x7ac7[34]](_0x7ac7[18])
}
;var _0x7166x1a = parseFloat(_0x7166xe) / 100;
var _0x7166x14 = _0x7166x1a / 12;
calc_amort(_0x7166xc, _0x7166x19, _0x7166x14, _0x7166x15, _0x7166x10)
}
function calc_amort(_0x7166x1c, _0x7166x1d, _0x7166x1e, _0x7166x1f, _0x7166x10) {
var _0x7166x2 = parseInt(jQuery(_0x7ac7[39])[_0x7ac7[24]]());
var _0x7166x20 = parseInt(jQuery(_0x7ac7[40])[_0x7ac7[24]]());
var _0x7166x21 = _0x7ac7[41];
var _0x7166x22 = parseFloat(0);
var _0x7166x23 = parseFloat(0);
var _0x7166x24 = parseFloat(0);
for (i = _0x7166x1f; i > 0; i--) {
var _0x7166x25 = parseFloat(_0x7166x1c * _0x7166x1e)[_0x7ac7[42]](DIGIT_PRECISION);
var _0x7166x26 = parseFloat(_0x7166x1d - _0x7166x25)[_0x7ac7[42]](DIGIT_PRECISION);
_0x7166x22 = parseFloat(_0x7166x22) + parseFloat(_0x7166x1d);
_0x7166x23 = parseFloat(_0x7166x23) + parseFloat(_0x7166x26);
_0x7166x24 = parseFloat(_0x7166x24) + parseFloat(_0x7166x25);
var _0x7166x27 = convert_month(_0x7166x2);
var _0x7166x28 = _0x7ac7[43] + _0x7166x27 + _0x7ac7[44] + _0x7166x20 + _0x7ac7[45] + localeString(parseFloat(_0x7166x1c)[_0x7ac7[42]](DIGIT_PRECISION)) + _0x7ac7[45] + localeString(_0x7166x1d) + _0x7ac7[45] + localeString(_0x7166x26) + _0x7ac7[45] + localeString(_0x7166x25) + _0x7ac7[46];
_0x7166x21 = _0x7166x21 + _0x7166x28;
if (_0x7166x2 == 12) {
_0x7166x2 = 1;
_0x7166x20++
} else {
_0x7166x2++
}
;_0x7166x1c = parseFloat(_0x7166x1c - _0x7166x26)[_0x7ac7[42]](DIGIT_PRECISION)
}
;if (_0x7166x10 > 0) {
var _0x7166x26 = parseFloat(_0x7166x1d - _0x7166x25)[_0x7ac7[42]](DIGIT_PRECISION);
var _0x7166x28 = _0x7ac7[47] + localeString(parseFloat(_0x7166x1c)[_0x7ac7[42]](DIGIT_PRECISION)) + _0x7ac7[45] + localeString(parseFloat(_0x7166x1c)[_0x7ac7[42]](DIGIT_PRECISION)) + _0x7ac7[45] + localeString(parseFloat(_0x7166x1c)[_0x7ac7[42]](DIGIT_PRECISION)) + _0x7ac7[48];
_0x7166x21 = _0x7166x21 + _0x7166x28
}
;_0x7166x28 = _0x7ac7[49] + localeString(parseFloat(_0x7166x22)[_0x7ac7[42]](DIGIT_PRECISION)) + _0x7ac7[50] + localeString(parseFloat(_0x7166x23)[_0x7ac7[42]](DIGIT_PRECISION)) + _0x7ac7[50] + localeString(parseFloat(_0x7166x24)[_0x7ac7[42]](DIGIT_PRECISION)) + _0x7ac7[51];
_0x7166x21 = _0x7166x21 + _0x7166x28;
jQuery(_0x7ac7[53])[_0x7ac7[34]](_0x7ac7[52]);
jQuery(_0x7ac7[54])[_0x7ac7[24]](localeString(parseFloat(_0x7166x24)[_0x7ac7[42]](DIGIT_PRECISION)));
jQuery(_0x7ac7[55])[_0x7ac7[34]](_0x7166x21)
}
calc_run()
?>