📄 calc6.aspx
字号:
<%@ Register TagPrefix="uc1" TagName="Foot" Src="../Inc/Foot.ascx" %>
<%@ Register TagPrefix="uc1" TagName="Head" Src="../Inc/Head.ascx" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<TITLE>购房计算器——还款计算器</TITLE>
<META http-equiv="Content-Type" content="text/html; charset=gb2312">
<LINK href="../Css/Style.css" type="text/css" rel="stylesheet">
</HEAD>
<body>
<uc1:Head id="Head1" runat="server"></uc1:Head>
<TABLE width="750" border="0" align="center" cellPadding="0" cellSpacing="0" style="BORDER-RIGHT: rgb(255,154,53) 1px solid; BORDER-TOP: rgb(255,154,53) 1px solid; BORDER-LEFT: rgb(255,154,53) 1px solid; BORDER-BOTTOM: rgb(255,154,53) 1px solid">
<TBODY>
<TR>
<TD vAlign="top"><TABLE width="170" border="1" align="left" cellPadding="3" cellSpacing="0" bordercolor="#ffffff">
<TBODY>
<TR>
<TD height="30" align="center" bgColor="#dedfde" class="title2">
<div align="center"><strong>购房计算器</strong></div>
</TD>
</TR>
<TR>
<TD bgColor="#efefef" height="20"> · <a href="calc1.aspx">公积金贷款计算器</a></TD>
</TR>
<TR>
<TD bgColor="#efefef" height="20"> · <a href="calc5.aspx">按揭贷款计算器</a></TD>
</TR>
<TR>
<TD bgColor="#efefef" height="20"> · <a href="calc2.aspx">等额本金还款法</a></TD>
</TR>
<TR>
<TD bgColor="#efefef" height="20"> · <a href="calc3.aspx">等额本息还款法</a></TD>
</TR>
<TR>
<TD bgColor="#efefef" height="20"> · <a href="calc6.aspx">提前还贷计算器</a></TD>
</TR>
<TR>
<TD bgColor="#efefef" height="20"> · <a href="calc8.aspx">购房费用</a></TD>
</TR>
<TR>
<TD bgColor="#efefef" height="20"> · <a href="calc4.aspx">公积金贷款利率及万元还本息金额表</a></TD>
</TR>
<TR>
<TD bgColor="#efefef" height="20"> · <a href="calc7.aspx">商业贷款利率及万元还本息金额表</a></TD>
</TR>
<TR>
<TD bgColor="#efefef" height="20"> · <a href="calc9.aspx">贷款利率表</a></TD>
</TR>
<TR>
<TD height="10"></TD>
</TR>
</TBODY>
</TABLE>
</TD>
<TD vAlign="top" width="562">
<TABLE cellSpacing="0" cellPadding="0" width="96%" border="0">
<TBODY>
<TR>
<TD height="47"><div align="center"><strong>还贷计算器</strong></div>
</TD>
</TR>
<TR>
<TD vAlign="top">
<TABLE cellSpacing="0" cellPadding="0" width="432" align="center" border="0">
<TBODY>
<TR>
<TD vAlign="top">
<TABLE cellSpacing="0" cellPadding="0" width="100%" border="0" style="BORDER-RIGHT: rgb(255,154,53) 1px solid; BORDER-TOP: rgb(255,154,53) 1px solid; BORDER-LEFT: rgb(255,154,53) 1px solid; BORDER-BOTTOM: rgb(255,154,53) 1px solid">
<TBODY>
<TR>
<TD vAlign="top" width="92%">
<SCRIPT language="javascript">
function play(){
if (document.myform.dkze.value=='')
{
alert('请填入贷款总额');
return false;
}
else
sm=parseFloat(document.myform.dkze.value)*10000;
if(document.myform.hklx[1].checked)
{
if(document.myform.hklxje.value=='')
{
alert('请填入部分提前还款额度');
return false;
}
}
stime=parseInt(document.myform.ydkqx.options[document.myform.ydkqx.selectedIndex].value);
if(document.myform.dklx[0].checked && stime<=60) srate=0.003;
if(document.myform.dklx[0].checked && stime>60) srate=0.003375;
if(document.myform.dklx[1].checked && stime<=60) srate=0.003975;
if(document.myform.dklx[1].checked && stime>60) srate=0.0042;
md=(parseInt(document.myform.yjtqhksjn.options[document.myform.yjtqhksjn.selectedIndex].value)-parseInt(document.myform.dychksjn.options[document.myform.dychksjn.selectedIndex].value))*12 + (parseInt(document.myform.yjtqhksjy.options[document.myform.yjtqhksjy.selectedIndex].value)-parseInt(document.myform.dychksjy.options[document.myform.dychksjy.selectedIndex].value));
if(md<0 || md>stime)
{
alert('预计提前还款时间与第一次还款时间有矛盾,请查实');
return false;
}
yhk=sm*(srate*Math.pow((1+srate),stime))/(Math.pow((1+srate),stime)-1);
lrq=(parseInt(document.myform.dychksjn.options[document.myform.dychksjn.selectedIndex].value)+Math.floor((stime+parseInt(document.myform.dychksjy.options[document.myform.dychksjy.selectedIndex].value)-2)/12))+'年'+((stime+parseInt(document.myform.dychksjy.options[document.myform.dychksjy.selectedIndex].value)-2) % 12+1)+'月';
pol=yhk*md;
rsd=0;
uir=0;
for(i=1;i<=md;i++){
rsd=rsd+(sm-uir)*srate;
uir=uir+yhk-(sm-uir)*srate;
}
remark='';
if(document.myform.hklx[1].checked){
ert=document.myform.hklxje.value*10000;
if(ert+yhk>=yhk*(1/srate-1/(srate*Math.pow((1+srate),(stime-md))))){
remark='您的提前还款额已经可以一次还清所有未还款项!';
}else{
if(document.myform.clfs[0].checked){
wer=0;
qwa=0;
for(j=sm-uir-yhk-ert;j>=0;j=j-qwa){
qwa=yhk/Math.pow((1+srate),wer);
wer++;
}
vbr=(sm-uir-yhk-ert)*(srate*Math.pow((1+srate),wer))/(Math.pow((1+srate),wer)-1);
bnf=yhk+ert;
thx=yhk*stime-pol-bnf-vbr*wer;
bncc=(parseInt(document.myform.dychksjn.options[document.myform.dychksjn.selectedIndex].value)+Math.floor((wer+md+parseInt(document.myform.dychksjy.options[document.myform.dychksjy.selectedIndex].value)-2)/12))+'年'+((wer+md+parseInt(document.myform.dychksjy.options[document.myform.dychksjy.selectedIndex].value)-2) % 12+1)+'月';
}else{
vbr=(sm-uir-yhk-ert)*(srate*Math.pow((1+srate),(stime-md)))/(Math.pow((1+srate),(stime-md))-1);
bnf=yhk+ert;
thx=yhk*stime-pol-bnf-vbr*(stime-md);
bncc=lrq;
}
}
}
if(document.myform.hklx[0].checked || remark!=''){
bnf=(sm-uir)*(1+srate);
vbr=0;
thx=yhk*stime-pol-bnf;
bncc=document.myform.yjtqhksjn.options[document.myform.yjtqhksjn.selectedIndex].value+'年'+document.myform.yjtqhksjy.options[document.myform.yjtqhksjy.selectedIndex].value+'月';
}
document.myform.ykhke.value=chgnum(yhk);
document.myform.yzhhkq.value=lrq;
document.myform.yhkze.value=chgnum(pol);
document.myform.yhlxe.value=chgnum(rsd);
document.myform.gyyihke.value=chgnum(bnf);
document.myform.xyqyhke.value=chgnum(vbr);
document.myform.jslxzc.value=chgnum(thx);
document.myform.xdzhhkq.value=bncc;
document.myform.jsjgts.value=remark;
}
function chgnum(sum){
return Math.round(sum*100)/100;
}
</SCRIPT>
<TABLE cellSpacing="0" cellPadding="0" width="90%" align="center" border="0">
<TBODY>
<TR vAlign="top">
<TD align="center" width="350" bgColor="#ffffff">
<TABLE cellSpacing="1" cellPadding="0" width="100%" align="center" border="0">
<FORM name="myform">
<TBODY>
<TR>
<TD height="30">贷款总额:<INPUT size="10" name="dkze"> 万元
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -