Returns the present value for a schedule of cash flows.

Namespace: Imsl.Finance
Assembly: ImslCS (in ImslCS.dll) Version: 6.5.0.0

Syntax

C#
public static double Xnpv(
	double rate,
	double[] cashFlow,
	DateTime[] dates
)
Visual Basic (Declaration)
Public Shared Function Xnpv ( _
	rate As Double, _
	cashFlow As Double(), _
	dates As DateTime() _
) As Double
Visual C++
public:
static double Xnpv(
	double rate, 
	array<double>^ cashFlow, 
	array<DateTime>^ dates
)

Parameters

rate
Type: System..::.Double
A double which specifies the interest rate.
cashFlow
Type: array< System..::.Double >[]()[]
A double array containing the cash flows.
dates
Type: array< System..::.DateTime >[]()[]
A DateTime array which contains a schedule of payment dates.

Return Value

A double which specifies the present value.

Remarks

It is not necessary that the cash flows be periodic. It is computed using the following:

\sum\limits_{i = 1}^{\it count} {{{{\it 
            value}_i } \over {\left( {1 + {\it rate}} \right)^{\left(  {d_i  - 
            d_1 } \right)/365}}}}

In the equation above, d_i represents the ith payment date, d_1 represents the first payment date, and {\it value}_i represents the ith cash flow.

See Also