| Line 44... |
Line 44... |
| 44 |
bankTenure.tenureDescription = opt.tenureDescription;
|
44 |
bankTenure.tenureDescription = opt.tenureDescription;
|
| 45 |
var r = opt.interestRate/12/100;
|
45 |
var r = opt.interestRate/12/100;
|
| 46 |
var installment = sellingPrice*r*Math.pow(1+r,opt.tenure)/(Math.pow(1+r,opt.tenure) - 1);
|
46 |
var installment = sellingPrice*r*Math.pow(1+r,opt.tenure)/(Math.pow(1+r,opt.tenure) - 1);
|
| 47 |
bankTenure.monthlyEmi = (Math.round(installment*100)/100).toFixed(2);
|
47 |
bankTenure.monthlyEmi = (Math.round(installment*100)/100).toFixed(2);
|
| 48 |
bankTenure.interestRate = opt.interestRate;
|
48 |
bankTenure.interestRate = opt.interestRate;
|
| - |
|
49 |
bankTenure.tenure = opt.tenure;
|
| 49 |
if(minEmi > installment){
|
50 |
if(minEmi > installment){
|
| 50 |
minEmi = installment;
|
51 |
minEmi = installment;
|
| 51 |
EMI.interestRate = r;
|
52 |
EMI.interestRate = r;
|
| 52 |
EMI.tenure = opt.tenure;
|
53 |
EMI.tenure = opt.tenure;
|
| 53 |
EMI.lowestEmiBank = opt.bankId;
|
54 |
EMI.lowestEmiBank = opt.bankId;
|
| Line 432... |
Line 433... |
| 432 |
var percentHtml=[];
|
433 |
var percentHtml=[];
|
| 433 |
tdHtml.push("<td><b>Installment<br>(Including Interest)</b></td>");
|
434 |
tdHtml.push("<td><b>Installment<br>(Including Interest)</b></td>");
|
| 434 |
percentHtml.push("<td><b>Interest Rate<br>(Annualized)</b></td>");
|
435 |
percentHtml.push("<td><b>Interest Rate<br>(Annualized)</b></td>");
|
| 435 |
jQuery.each(bank.emis, function(key,val){
|
436 |
jQuery.each(bank.emis, function(key,val){
|
| 436 |
var r = val.interestRate/12/100;
|
437 |
var r = val.interestRate/12/100;
|
| 437 |
var installment = sellingPrice*r*Math.pow(1+r,opt.tenure)/(Math.pow(1+r,opt.tenure) - 1);
|
438 |
var installment = sellingPrice*r*Math.pow(1+r,val.tenure)/(Math.pow(1+r,val.tenure) - 1);
|
| 438 |
val.monthlyEmi = (Math.round(installment*100)/100).toFixed(2);
|
439 |
val.monthlyEmi = (Math.round(installment*100)/100).toFixed(2);
|
| 439 |
tdHtml.push('<td><span style="font-size:11px" class="rupee-icon"><b>' + val.monthlyEmi+ '</b></span></td>');
|
440 |
tdHtml.push('<td><span style="font-size:11px" class="rupee-icon"><b>' + val.monthlyEmi+ '</b></span></td>');
|
| 440 |
tenureHtml.push('<td><span style="font-size:11px"><b>' + val.tenureDescription + '</b></span></td>');
|
441 |
tenureHtml.push('<td><span style="font-size:11px"><b>' + val.tenureDescription + '</b></span></td>');
|
| 441 |
percentHtml.push('<td><span style="font-size:11px"><b>' + val.interestRate + '%</b></span></td>');
|
442 |
percentHtml.push('<td><span style="font-size:11px"><b>' + val.interestRate + '%</b></span></td>');
|
| 442 |
});
|
443 |
});
|