function lc() {
 var GSTr=parseFloat(document.loan.GSTrate.value);
 var nPurchase=parseFloat(document.loan.purchase.value);
 var nDn=parseFloat(document.loan.downpayment.value);
 var nP=document.loan.prov.selectedIndex;
 var nPt=parseFloat(document.loan.prov[nP].value);
 var nN=document.loan.length.selectedIndex;
 var nTm=parseFloat(document.loan.length[nN].value);
 var nRt=parseFloat(document.loan.rate.value);
  var nTr=parseFloat(document.loan.tradein.value);
 var nPcent=parseFloat(document.loan.pcent[nPt]);
 var nTaxG=0;
 var nTaxP=0;
 if (nP==0) {
 nTaxG=((nPurchase-nTr)/100)*GSTr;
 nTaxP=(((nPurchase-nTr)+nTaxG)/100)*nPt;
 }
 else if (nP==1) {
 nTaxG=0;
 GSTr=0;
 nTaxP=((nPurchase-nTr)/100)*nPt;
 }
 else if (nP==2) {
 nTaxG=0;
 GSTr=0;
 nTaxP=((nPurchase-nTr)/100)*nPt;
 }
 else if (nP==3) {
 nTaxG=0;
 GSTr=0;
 nTaxP=((nPurchase-nTr)/100)*nPt;
 name="H.S.T.";
 }
 else if (nP==4) {
 nTaxG=((nPurchase-nTr)/100)*GSTr;
 nTaxP=(((nPurchase-nTr)+nTaxG)/100)*nPt;
 }
 else if (nP==7) {
 nTaxG=((nPurchase-nTr)/100)*GSTr;
 nTaxP=(nPurchase/100)*nPt;
 }
 else if (nP==13){
 nTaxG=0;
 GSTr=0;
 }
 else {
 nTaxG=((nPurchase-nTr )/100)*GSTr;
 nTaxP=((nPurchase-nTr)/100)*nPt;
 }
  var nShowFinance=(nPurchase+nTaxG+nTaxP)-(nTr+nDn);
  var nFin=(nShowFinance+300);
 var nI=nRt/100/12;
 var nY=Math.pow(1+nI, nTm);
 var nPayment=(nFin*nY*nI)/(nY-1);
 var nInterest=(nPayment*nTm)-nFin;
 document.loan.interest.value=Math.round(nInterest);
 document.loan.pay.value=Math.round(nPayment);
 document.loan.total.value=Math.round(nShowFinance);
 document.loan.Gst.value=Math.round(nTaxG);
 document.loan.Pst.value=Math.round(nTaxP);
 document.loan.pcent.value=Math.round(nPt);
 document.loan.GSTrate.value=Math.round(GSTr);
 }
