apaReturn.ProfitLoss(BMV, EMV, CF, CFTime)
Excel
=apaReturn.ProfitLoss(BMV, EMV, CF, CFTime)Result
Calculates the profit or loss from beginning and ending market values and cash flows.
Syntax
BMV: beginning market value
EMV: ending market value
CF: n x 1 cash flow vector
CFTime: n x 1 vector of the cash flow time points, between 0 and 1
Algorithm
The profit or loss is calculated as EMV − BMV − sum of cash flows.
Remarks
Cash flows with CFTime = 0 are treated as part of the beginning market value.
