Finance
NetPresentValue
return the net present value of future cash flows
Calling Sequence
Parameters
Options
Description
Examples
Compatibility
NetPresentValue(instrument)
NetPresentValue(cashflows, discountrate, opts)
instrument
-
cash flow swap or an interest rate swap; financial instrument
cashflows
data structure created using the SimpleCashFlow constructor or a list of such data structures; cash flows
discountrate
non-negative constant or a yield term structure; discount rate
opts
equations of the form option = value where option is one of referencedate or daycounter; specify options for the NetPresentValue command
daycounter = a string containing a date specification in a format recognized by ParseDate or a Date data structure -- This option specifies a day counter or day counting convention.
referencedate = a string containing a date specification in a format recognized by ParseDate or a Date data structure -- This option specifies the reference date, that is, the date when the discount factor is 1. By default this is set to the global evaluation date.
The NetPresentValue(instrument) calling sequence returns the net present value of the given instrument. The parameter instrument in this case can be either a cash flow swap or an interest rate swap. For bonds the net present value is the same as the dirty price (see DirtyPrice).
The NetPresentValue(cashflows, discountrate, opts) calling sequence returns the net present value for the future cash flows discounted with respect to the given discount rate.
with⁡Finance:
First set the global evaluation date.
SetEvaluationDate⁡January 01, 2005:
EvaluationDate⁡
January 1, 2005
Calculate the net present value of 100 dollars to be paid on January 2, 2007.
paymentdate≔Jan-02-2007
cashflow1≔SimpleCashFlow⁡100,paymentdate
cashflow1≔100. on January 2, 2007
NetPresentValue⁡cashflow1,0.03
94.16871315
100⁢DiscountFactor⁡0.03,paymentdate
NetPresentValue⁡cashflow1,0.03,referencedate=Jan-01-2004
91.38560707
100⁢DiscountFactor⁡0.03,paymentdate,referencedate=Jan-01-2004
Here is another example.
nominalamt≔100
rate≔0.05
paymentdate≔Jan-01-2015
startdate≔Jan-01-2006
enddate≔Jan-01-2010
coupon≔FixedRateCoupon⁡nominalamt,rate,startdate,enddate,paymentdate
coupon≔20. on January 1, 2015
Compute the value of this cash flow on January 1, 2005.
NetPresentValue⁡coupon,0.03
14.81636441
Here is another way to compute this. First, compute the accrued interest.
accrued≔nominalamt⁢CompoundFactor⁡rate,enddate,referencedate=startdate,compounding=Simple−nominalamt
accrued≔20.0000000
This is the value to be received on January 1, 2010. Discount this value using the discount rate.
accrued⁢DiscountFactor⁡0.03,paymentdate
Compute with a difference day counter.
NetPresentValue⁡coupon,0.03,daycounter=DayCounter⁡Actual360
14.75229908
The Finance[NetPresentValue] command was introduced in Maple 15.
For more information on Maple 15 changes, see Updates in Maple 15.
See Also
Finance[CompoundFactor]
Finance[DiscountFactor]
Finance[FixedRateCoupon]
Finance[InArrearIndexedCoupon]
Finance[ParCoupon]
Finance[SimpleCashFlow]
Finance[UpFrontIndexedCoupon]
Finance[ZeroCurve]
Download Help Document