Go To Documentation Main IndexMain Index
Go To TIPS, Inc.TIPS Home
mtrm_dur

mtrm_dur (routine)

Calculate duration and modified duration for a medium term note

Introduced in release: 1.0
Component: Generic
Purpose: Calculates actual Macaulay duration and modified duration for a medium term note (a regular bond, odd first coupon bond, odd last coupon bond, and odd first and last coupon bond).

Alternatives: If price and/or yield, accrued interest, current yield, estimated Macaulay duration, estimated convexity, interest on interest, etc. are required, and estimates of duration measures (change in price due to a + and - swing of 0.01 basis points) can be used in place of actual duration measures, use the mtrm_risk routine instead of this routine.

Notes: The price input to this routine is the dirty price, which is used as the denominator in the duration equation. If a 0 is input for price, this routine calculates the denominator as the present value of coupon and principal cash flows.

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 variable dur contains the calculated duration. The variable mod_dur contains the modified duration. The results are 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.

Last Mod Date: 10/07/1993© 2001 TIPS, Inc.Doc Version: 5.0