Git Product home page Git Product logo

loans's Introduction

开始

用面积堆叠图比较直观的显示 等额本息和等额本金的区别 在线体验地址

    基础信息:
    贷款期限 30 年 
    等额本息: 需要每月还5368.22, 还款总额为 1932559.2000000002;
    等额本金: 需要第一月还6944.44 每月递减 11.57, 还款总额为 1752345.00。
    利滚利定投:
    投资利率 5%
    等额本息 去掉 等额本金后期投资(机会成本) 共赚取 180669.0900000002 定投利息;
    等额本金比等额本息少交利息 180214.20;
    个人总收益  454.89

Available Scripts

In the project directory, you can run:

yarn start

yarn test

Launches the test runner in the interactive watch mode.

yarn build

计算方法

  1. 总额 a
  2. 月利息 r ( 贷款利率/12)
  3. 期数 n (年限*12)

等额本金

月还款: 第1月 a / n + a * r 第2月 a / n + a * (n-1)/ n * r ... 第n月 a/n + a / n * r

等额本息

假设月还款 为 X 则每月剩余金额: 初始 a0 = a 第1个月 a1 = a0 * (1+r) - X 第2个月 a2 = a1 * (1+r) - X 第3个月 a3 = a2 * (1+r) - X ... 第n个月 a_n = a_n-1 * (1+r) - X = 0

X = a(1+r)^n*r / ((1+r)^n - 1)

loans's People

Contributors

delenzhang avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.