Skip to content

Backlighting-Neo/loan_function

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

4 Commits

Repository files navigation

Constants

公积金贷款基准利率 : Number
商业贷款基准利率 : Number
商业贷款利率系数 : Array.<Number>
公积金贷款利率系数 : Array.<Number>

Functions

getLoanDetail 按等额本息和等额本金方式计算还款(principal, interestRateInYear, repaymentMonth)LoanDetail
getSeriesRatioOfHousingFund 获取公积金利率列表(baseRatio, coefficientList)Array.<RatioDetail>
getSeriesRatioOfBussiness 获取商业贷款利率列表(baseRatio, coefficientList)Array.<RatioDetail>

Typedefs

RepaymentDetailInMonth : Object

每月还款详情

RepaymentDetailOfFixedInstallment : Object

等额本息计算结果

RepaymentDetailOfFixedPrincipal : Object

等额本金计算结果

LoanDetail : Object

贷款计算结果

RatioDetail : Object

带系数的利率详情

公积金贷款基准利率 : Number

Kind: global constant

商业贷款基准利率 : Number

Kind: global constant

商业贷款利率系数 : Array.<Number>

Kind: global constant

公积金贷款利率系数 : Array.<Number>

Kind: global constant

getLoanDetail 按等额本息和等额本金方式计算还款(principal, interestRateInYear, repaymentMonth) ⇒ LoanDetail

Kind: global function
Returns: LoanDetail - 计算结果

ParamTypeDescription
principalNumber本金数
interestRateInYearNumber年利率
repaymentMonthNumber还款月数

getSeriesRatioOfHousingFund 获取公积金利率列表(baseRatio, coefficientList) ⇒ Array.<RatioDetail>

Kind: global function
Returns: Array.<RatioDetail> - 计算结果

ParamTypeDefaultDescription
baseRatioNumber0.049基础利率 例如利率为4.9%时为0.049
coefficientListArray.<Number>[1,1.1,1.2系数列表

getSeriesRatioOfBussiness 获取商业贷款利率列表(baseRatio, coefficientList) ⇒ Array.<RatioDetail>

Kind: global function
Returns: Array.<RatioDetail> - 计算结果

ParamTypeDefaultDescription
baseRatioNumber0.0325基础利率 例如利率为4.9%时为0.049
coefficientListArray.<Number>[0.7,0.8,0.83,0.85,0.88,0.9,0.95,1,1.05,1.1,1.15,1.2,1.25,1.3,1.35,1.4系数列表

RepaymentDetailInMonth : Object

每月还款详情

Kind: global typedef
Properties

NameTypeDescription
monthCountNumber还款月序号
principalNumber本金
interestNumber利息
totalNumber还款额
principalTextNumber可视化本金
interestTextNumber可视化利息
totalTextNumber可视化还款额

RepaymentDetailOfFixedInstallment : Object

等额本息计算结果

Kind: global typedef
Properties

NameTypeDescription
repaymentMoneyPerMonthNumber每月还款额
totalIntersetNumber总利息
repaymentMoneyPerMonthTextString可视化每月还款额
totalIntersetTextString可视化总利息
installmentListArray.<RepaymentDetailInMonth>每月还款详情

RepaymentDetailOfFixedPrincipal : Object

等额本金计算结果

Kind: global typedef
Properties

NameTypeDescription
repaymentPrincipalPerMonthNumber每月应还本金
deltaRepaymentMoneyPerMonthNumber每月还款额递减金额
repaymentMoneyForFirstMonthNumber首月还款额
totalIntersetNumber总利息
repaymentPrincipalPerMonthTextString可视化每月应还本金
deltaRepaymentMoneyPerMonthTextString可视化每月还款额递减金额
repaymentMoneyForFirstMonthTextString可视化首月还款额
totalIntersetTextString可视化总利息
installmentListArray.<RepaymentDetailInMonth>每月还款详情

LoanDetail : Object

贷款计算结果

Kind: global typedef
Properties

NameTypeDescription
fixedInstallmentRepaymentDetailOfFixedInstallment等额本息计算结果
fixedPrincipalRepaymentDetailOfFixedPrincipal等额本金计算结果

RatioDetail : Object

带系数的利率详情

Kind: global typedef
Properties

NameTypeDescription
coefficientNumber系数 例如1.05
coefficientSuffixString倍数结尾文字 例如"折"或"倍"
coefficientTextString倍数 例如"1.05倍"
ratioNumber利率 例如0.05145
textString用于显示的完整文字 例如"1.05倍(5.145%)"

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published