当前位置:网站首页>Mortgage Calculator
Mortgage Calculator
2022-07-03 08:46:00 【bin9153】
Calculation formula of equal principal repayment :
1. Monthly contributions =( Loan principal ÷ Number of repayment months )+( Loan principal - The accumulated amount of principal paid back )× An interest
2. Monthly repayment of principal = Loan principal ÷ Number of repayment months
3. Monthly interest payable = Remaining principal × An interest =( Loan principal - The accumulated amount of principal paid back )× An interest
4. Decreasing amount of monthly supply = Monthly repayment of principal × An interest = Loan principal ÷ Number of repayment months × An interest
5. Total interest =〔( Total loan amount ÷ Number of repayment months + Total loan amount × An interest )+ Total loan amount ÷ Number of repayment months ×(1+ An interest )〕÷2× Number of repayment months - Total loan amount
B Equal principal and interest monthly payment
A The total amount of the loan
i An interest
n Loan period ( Unit month )
An interest = Annual interest rate /12
Equal principal
// Equal principal Total interest
getMonthMoney5(a, n, m) {
// 5. Total interest =〔( Total loan amount ÷ Number of repayment months + Total loan amount × An interest ) + Total loan amount ÷ Number of repayment months ×(1 + An interest ) 〕÷2× Number of repayment months - Total loan amount
// a The principal
// n Total repayment months
// t Current repayment months
// m An interest
// lx Total payment
var lx = 0
for (let t = 1; t <= n; t++) {
lx = (a - a * (t - 1) / n) * m
lx = lx + lx
}
console.log('lx>>', lx)
return lx
},
边栏推荐
- Find the intersection of line segments
- [concurrent programming] consistency hash
- UE4 source code reading_ Mobile synchronization
- Thymeleaf 404 reports an error: there was unexpected error (type=not found, status=404)
- redis集群系列四
- Kunlunbase meetup is waiting for you!
- 请求参数的发送和接收
- Mxone Pro adaptive 2.0 film and television template watermelon video theme apple cmsv10 template
- [concurrent programming] concurrent tool class of thread
- Unity Editor Extension - drag and drop
猜你喜欢
[redis] redis persistent RDB vs AOF (source code)
Graphics_ Learnopongl learning notes
Log4j2 vulnerability recurrence and analysis
Servlet的生命周期
Mxone Pro adaptive 2.0 film and television template watermelon video theme apple cmsv10 template
JS ternary operator - learning notes (with cases)
单调栈-503. 下一个更大元素 II
Introduction to Base64 coding
Some understandings of 3dfiles
Analysis of Alibaba canal principle
随机推荐
【Rust笔记】05-错误处理
二进制转十进制,十进制转二进制
Unity editor expansion - the framework and context of unity imgui
file_ put_ contents
Mysql容器化(1)Docker安装MySQL
Markdown learning
Unity editor expansion - window, sub window, menu, right-click menu (context menu)
[concurrent programming] concurrent tool class of thread
数据库原理期末复习
Monotonic stack -503 Next bigger Element II
Final review of Database Principles
【Rust 笔记】11-实用特型
Dom4j traverses and updates XML
Cesium for unreal quick start - simple scenario configuration
Advanced OSG collision detection
matlab神經網絡所有傳遞函數(激活函數)公式詳解
Unity Editor Extension - drag and drop
Some understandings of 3dfiles
[rust notes] 07 structure
Solution détaillée de toutes les formules de fonction de transfert (fonction d'activation) du réseau neuronal MATLAB