Calculates the resulting amount.
Based on https://gist.github.com/ghalimi/4591338 by @ghalimi ASF licensed (check the link for the full license)
Calculates the first derivation
Based on https://gist.github.com/ghalimi/4591338 by @ghalimi ASF licensed (check the link for the full license)
This function is here to simply have a different name for the 'fv' function to not interfere with the 'fv' keyword argument within the 'ipmt' function. It is the 'remaining balance on loan' which might be useful as it's own function, but is easily calculated with the 'fv' function.
Compute the future value.
Rate of interest as decimal (not per cent) per period
Number of compounding periods
A fixed payment, paid either at the beginning or ar the end (specified by when
)
Present value
When payment was made
The value at the end of the nper
periods
Compute the interest portion of a payment.
Rate of interest as decimal (not per cent) per period
Interest paid against the loan changes during the life or the loan. The per
is the payment period to calculate the interest amount
Number of compounding periods
Present value
Future value
When payments are due
Interest portion of payment
Return the Internal Rate of Return (IRR).
This is the "average" periodically compounded rate of return that gives a net present value of 0.0; for a more complete explanation, see Notes below.
Input cash flows per time period.
By convention, net "deposits"
are negative and net "withdrawals" are positive. Thus, for
example, at least the first element of values
, which represents
the initial investment, will typically be negative.
Starting guess for solving the Internal Rate of Return
Required tolerance for the solution
Maximum iterations in finding the solution
Internal Rate of Return for periodic input values
Calculates the Modified Internal Rate of Return.
Cash flows (must contain at least one positive and one negative value) or nan is returned. The first value is considered a sunk cost at time zero.
Interest rate paid on the cash flows
Interest rate received on the cash flows upon reinvestment
Modified internal rate of return
Compute the number of periodic payments.
Rate of interest (per period)
Payment
Present value
Future value
When payments are due
The number of periodic payments
Returns the NPV (Net Present Value) of a cash flow series.
The discount rate
The values of the time series of cash flows. The (fixed) time
interval between cash flow "events" must be the same as that for
which rate
is given (i.e., if rate
is per year, then precisely
a year is understood to elapse between each cash flow event). By
convention, investments or "deposits" are negative, income or
"withdrawals" are positive; values
must begin with the initial
investment, thus values[0]
will typically be negative.
The NPV of the input cash flow series values
at the discount rate
.
Compute the payment against loan principal plus interest.
Rate of interest (per period)
Number of compounding periods (e.g., number of payments)
Present value (e.g., an amount borrowed)
Future value (e.g., 0)
When payments are due
the (fixed) periodic payment
Compute the payment against loan principal.
Rate of interest (per period)
Amount paid against the loan changes. The per
is the period of interest.
Number of compounding periods
Present value
Future value
When payments are due
the payment against loan principal
Calculates the present value of an annuity investment based on constant-amount periodic payments and a constant interest rate.
Rate of interest (per period)
Number of compounding periods
Payment
Future value
When payments are due
the present value of a payment or investment
Compute the rate of interest per period
Number of compounding periods
Payment
Present value
Future value
When payments are due ('begin' or 'end')
Starting guess for solving the rate of interest
Required tolerance for the solution
Maximum iterations in finding the solution
the rate of interest per period (or NaN
if it could
not be computed within the number of iterations provided)
Generated using TypeDoc
Evaluates
g(r_n)/g'(r_n)
, where:g = fv + pv * (1+rate) ** nper + pmt * (1+rate * when)/rate * ((1+rate) ** nper - 1)