算法
第一个月,还款前我手中持有现金10000元,本月我应付的利息是10000×0.66%=66元。
第二个月,因为我还了833.33元本金,还款前我手中持有现金10000-833.33=9166.67元,本月我应付的利息是9166.67×0.66%=60.5元
第三个月,我又还了833.33元本金,还款前我手中持有现金9166.67-833.33=8333.34元,本月我应付的利息是8333.34×0.66%=55元
依次类推……
第十二个月,还款前我手中仅持有833.33元,本月我应付利息833.33×0.66%=5.5元
按以上算法,我本月还欠银行多少钱,就付相应的利息,已还部分就不应该付利息,这样,把以上每个月利息依次相加,算出来我12个月只应该付出429元利息。
假如我持有10000元整整12个月,应该付792元利息,但我每月都在还钱,只为没还的部分付利息,就应该付429元利息。无形中我多付了(792-429)/429*100%=84.62%。
这84.62%就是真实年利率比名义年利率多出来的部分。
那么真实年利率就是7.92%×(1+84.62%)=14.62%。
代码
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>信用卡真实利率计算器</title>
<style>
body,p,span,div{
font-size:12px;font-family:"MS YaHei";color:#555;margin:0;padding:0}
body{
background-color:#eee}
p{
text-align:left;width:100%}
.width400{
max-width:450px;width:95%}
.height30{
height:30px;line-height:30px}
.font0{
font-size:0}
.to-inline-block{
display:inline-block;}
.aligncenter{
text-align:center}
.margincenter{
margin:0 auto}
.label{
display:block;width:100%;text-align:left;font-weight:300;font-size:14px}
.numbers{
display:block;width:95%;margin:0 auto;border:1px solid #aaa;padding:5px;border-radius:5px;color:#ccc}
.btn{
height:40px;width:100%;color:#fff;background-color:#4976d6;border:0;border-radius:5px}
.btn:hover{
background-color:#2561e2;cursor:pointer}
.output-table{
margin-top:30px}
.output-cell{
padding:5px;font-size:14px;vertical-align:bottom;margin:-1px 0 0 -1px}
.output-cell-1{
width:15%}
.output-cell-2,.output-cell-3,.output-cell-4{
width:25%}
.output-rows {
margin:25px auto}
.output-rows span{
font-size:14px;border:1px solid #aaa;padding:10px

最低0.47元/天 解锁文章
1179

被折叠的 条评论
为什么被折叠?



