当前位置:网站首页>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
},
边栏推荐
- XPath实现XML文档的查询
- php-fpm软件的安装+openresty高速缓存搭建
- Concurrent programming (VI) ABA problems and solutions under CAS
- Unity editor expansion - controls, layouts
- Monotonic stack -84 The largest rectangle in the histogram
- Query XML documents with XPath
- 分配异常的servlet
- Deep parsing JVM memory model
- UE4 source code reading_ Bone model and animation system_ Animation node
- [cloud native] introduction and use of feign of microservices
猜你喜欢

Log4j2 vulnerability recurrence and analysis

Constraintlayout's constraintset dynamically modifies constraints

Graphics_ Games101/202 learning notes

Es8 async and await learning notes

Really explain the five data structures of redis
![[concurrent programming] explicit lock and AQS](/img/5f/a80751a68726f53d11133810f454a3.jpg)
[concurrent programming] explicit lock and AQS

PHP uses foreach to get a value in a two-dimensional associative array (with instances)

Campus lost and found platform based on SSM, source code, database script, project import and operation video tutorial, Thesis Writing Tutorial

Redux - learning notes
![[concurrent programming] working mechanism and type of thread pool](/img/51/d21428a7c95c0a5177e8198742e78c.jpg)
[concurrent programming] working mechanism and type of thread pool
随机推荐
如何应对数仓资源不足导致的核心任务延迟
Vscode, idea, VIM development tool shortcut keys
Campus lost and found platform based on SSM, source code, database script, project import and operation video tutorial, Thesis Writing Tutorial
Message queue for interprocess communication
[rust notes] 11 practical features
[audio and video] ijkplayer error code
Message pack in C deserializes array objects
Unity Editor Extension - event handling
了解小程序的笔记 2022/7/3
Osganimation library parsing
Image processing 8-cnn image classification
Osgearth north arrow display
Thymeleaf 404 reports an error: there was unexpected error (type=not found, status=404)
[concurrent programming] Table hopping and blocking queue
LinkedList set
MySQL index types B-tree and hash
Unity editor expansion - the framework and context of unity imgui
Talking about: is the HashSet set ordered or disordered /hashset set unique, why can we store elements with the same content
Sequence of map implementation classes
MySQL containerization (1) docker installation MySQL