apaReturn.IRR(BMV, EMV, CF, CFTime)
=apaReturn.IRR(BMV, EMV, CF, CFTime)Result
Calculates the money-weighted return, also known as internal rate of return (IRR) or dollar-weighted return, from a beginning and an ending market value and cash in- and outflows.
Syntax
BMV: beginning market value
EMV: ending market value
CF: n x 1 vector of portfolio cash in- and outflows (contributions and withdrawals)
CFTime: n x 1 vector of the cash flow time points, between 0 and 1
Algorithm
The bisection method is used, starting from the maximum/minimum possible figures that can be processed in Excel.
The search is carried out until a solution as close to zero as 0.00001 has been found.
If no solution is found, the search is stopped after 1’000’000 trials, returning an error value.
Remarks
It is assumed that the time period between beginning and end equals one. Therefore, CFTime values are between 0 and 1. CFTime is measured from the beginning of the period to the point in time the cash flow occurs. E.g. a value of 0.25 means that the flow occurred after 25% of the investment period had passed, i.e. was invested for 75% of the investment period.
