Finance
AccruedAmount
calculate the accrued amount of a bond
Calling Sequence
Parameters
Description
Examples
Compatibility
AccruedAmount(bond, date)
bond
-
fixed- or floating-rate bond data structure; bond
date
a string containing a date specification in a format recognized by ParseDate or a Date data structure; evaluation date
The AccruedAmount command computes the interest that is due on a bond since the last interest payment was made. Accrued interest is added to the contract price of a bond transaction.
The parameter bond is a fixed coupon bond or floating rate bond.
The (optional) parameter date is the evaluation date. By default the global evaluation date is used. It can be specified in any of the standard date formats supported by the package.
Note that the value returned by the AccruedAmount command depends on the day count and day rolling conventions used by bond.
with⁡Finance:
SetEvaluationDate⁡March 15, 2005:
EvaluationDate⁡
March 15, 2005
Settings⁡compounding=Continuous,settlementdays=0,businessdayconvention=Unadjusted
compounding=Continuous,settlementdays=0,businessdayconvention=Unadjusted
Consider a 3-year bond with face value of 100 that pays a fixed coupon of 3 percent issued on March 15, 2005.
Principal≔100:
Coupon≔0.03:
B1≔FixedCouponBond⁡Principal,3,Years,Coupon,issuedate=March 15, 2005,daycounter=Thirty360European:
Here is the same bond but using the ISDA convention.
B2≔FixedCouponBond⁡Principal,3,Years,Coupon,issuedate=March 15, 2005,daycounter=ISDA:
Here is the interest accrued before the first coupon payment.
AccruedAmount⁡B1,March 14, 2006
2.991666667
AccruedAmount⁡B2,March 14, 2006
2.991780822
Compare this to
Principal⁢Coupon⁢YearFraction⁡March 15, 2005,March 14, 2006,Thirty360European
Principal⁢Coupon⁢YearFraction⁡March 15, 2005,March 14, 2006,ISDA
This shows the interest accrued right after the first coupon payment.
AccruedAmount⁡B1,March 15, 2006
0.
AccruedAmount⁡B2,March 15, 2006
Here is the interest accrued two months after the first coupon payment.
AccruedAmount⁡B1,May 16, 2006
0.5083333333
AccruedAmount⁡B2,May 16, 2006
0.5095890411
Compare accrued interest and the difference between the clean price and the dirty price of a bond.
SetEvaluationDate⁡March 14, 2006:
March 14, 2006
CleanPrice⁡B1,0.05
96.04651941
DirtyPrice⁡B1,0.05
99.03818607
CleanPrice⁡B1,0.05+AccruedAmount⁡B1=DirtyPrice⁡B1,0.05
99.03818608=99.03818607
CleanPrice⁡B2,0.05+AccruedAmount⁡B2=DirtyPrice⁡B2,0.05
99.03412275=99.03412275
SetEvaluationDate⁡March 15, 2006:
March 15, 2006
96.05194233
96.05194233=96.05194233
96.04769000=96.04769000
SetEvaluationDate⁡March 16, 2006:
March 16, 2006
96.05695047
96.06528381
96.06528380=96.06528381
96.06084812=96.06084812
The Finance[AccruedAmount] command was introduced in Maple 15.
For more information on Maple 15 changes, see Updates in Maple 15.
See Also
Finance[CleanPrice]
Finance[DayCounter]
Finance[DirtyPrice]
Finance[EvaluationDate]
Finance[FixedCouponBond]
Finance[FloatingRateBond]
Finance[FormatDate]
Finance[ParseDate]
Finance[Settings]
Finance[YearFraction]
Finance[YieldFromCleanPrice]
Finance[YieldFromDirtyPrice]
Finance[ZeroCouponBond]
Download Help Document