Calculate accrued interest for an medium term note
Introduced in release: 1.0 Component: Restricted Purpose:
Calculates the accrued interest for a medium term note. Specifically it will perform accrued interest calculations for a regular bond, odd first coupon bond, odd last coupon bond, and odd first and last coupon bond. It also returns adjusted first coupon values to be passed to other routines.
Alternatives:
If price and/or yield are required in addition to accrued interest, use the mtrm_py_ai routine instead of this routine. If price and/or yield, current yield, estimated Macaulay duration, estimated convexity, interest on interest, etc. are required in addition to accrued interest, use the mtrm_risk routine.
Notes:
The maturity date used by this routine can be a maturity/redemption date.
Results:
All results are calculated using the industry standard rules or generally accepted practices. The function returns the accrued interest per 100 of maturity value, accurate to as many places as supported by a double precision value.
Error Conditions:
Returned values should be ignored for a non-zero status. See Errors.