how to calculate mortgage in javascript

后端 未结 3 946
执念已碎
执念已碎 2021-02-06 11:13

I have formula for finding monthly payment with four fields

  1. Loan Amount
  2. Interest Rate
  3. Terms of loan
  4. Monthly Payment

3条回答
  •  情歌与酒
    2021-02-06 12:17

    var deno = (100 + Interest_rate_per_annum)/100;
    var pdeno = Math.pow(deno, Term_of_Loan);
    var loan_amount = (Monthly_payment * Term_of_Loan * 12) / pdeno;
    

提交回复
热议问题