__construct()
__construct()
FinanceCalculator
A library for performing various finance calculations
PresentValueOfFutureMoney(float $futureValue, float $numPeriods, float $interestRate) : object
Calculate present value of future money
float | $futureValue | Future Value |
float | $numPeriods | Number of Periods |
float | $interestRate | Interest Rate |
object containing Present Value and Total Interest
PresentValueOfDeposits(float $numPeriods, float $interestRate, float $depositAmount, boolean $depositAtBeginning) : object
Calculate the present value of future deposits
float | $numPeriods | Number of Periods |
float | $interestRate | Interest Rate |
float | $depositAmount | Periodic Deposit Amount |
boolean | $depositAtBeginning | Periodic Deposits made at beginning of period |
object containing Present Value, Total Principal, and Total Interest
FutureValue(float $presentValue, float $numPeriods, float $interestRate, float $timesCompoundedPerPeriod, float $depositAmount, boolean $depositAtBeginning) : object
Calculate the future value of money and/or deposits
float | $presentValue | Present Value |
float | $numPeriods | Number of Periods |
float | $interestRate | Interest rate as a percentage |
float | $timesCompoundedPerPeriod | Times interest is compounded per period |
float | $depositAmount | Periodic Deposit Amount |
boolean | $depositAtBeginning | Periodic Deposits made at beginning of period |
object containing Future Value and Total Interest
NetPresentValue(float $initialInvestment, float $discountRate, float $timesCompoundedPerPeriod, float $cashFlowsAtBeginning, array $cashFlow) : float
Calculate net present value
float | $initialInvestment | Initial Investment |
float | $discountRate | Discount Rate (eg. Interest Rate) |
float | $timesCompoundedPerPeriod | Times discount/interest is compounded per period |
float | $cashFlowsAtBeginning | |
array | $cashFlow | List of cash flows per period |
Net Present Value