Class: FinanceCalculator

FinanceCalculator()

A library for performing various finance calculations

Constructor

new FinanceCalculator()

Source:

Methods

FutureValue(presentValue, numPeriods, interestRate, timesCompoundedPerPeriod, depositAmount, depositAtBeginning) → {Promise}

Calculate the future value of money and/or deposits
Parameters:
Name Type Description
presentValue number Present Value
numPeriods number Number of Periods
interestRate number Interest rate as a percentage
timesCompoundedPerPeriod number Times interest is compounded per period
depositAmount number Periodic Deposit Amount
depositAtBeginning boolean Periodic Deposits made at beginning of period
Source:
Returns:
object containing Future Value and Total Interest Promise will resolve to type object.
Type
Promise

NetPresentValue(initialInvestment, discountRate, timesCompoundedPerPeriod, cashFlowsAtBeginning, cashFlow) → {Promise}

Calculate net present value
Parameters:
Name Type Description
initialInvestment number Initial Investment
discountRate number Discount Rate (eg. Interest Rate)
timesCompoundedPerPeriod number Times discount/interest is compounded per period
cashFlowsAtBeginning number
cashFlow array List of cash flows per period
Source:
Returns:
Net Present Value Promise will resolve to type number.
Type
Promise

PresentValueOfDeposits(numPeriods, interestRate, depositAmount, depositAtBeginning) → {Promise}

Calculate the present value of future deposits
Parameters:
Name Type Description
numPeriods number Number of Periods
interestRate number Interest Rate
depositAmount number Periodic Deposit Amount
depositAtBeginning boolean Periodic Deposits made at beginning of period
Source:
Returns:
object containing Present Value, Total Principal, and Total Interest Promise will resolve to type object.
Type
Promise

PresentValueOfFutureMoney(futureValue, numPeriods, interestRate) → {Promise}

Calculate present value of future money
Parameters:
Name Type Description
futureValue number Future Value
numPeriods number Number of Periods
interestRate number Interest Rate
Source:
Returns:
object containing Present Value and Total Interest Promise will resolve to type object.
Type
Promise