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

stpd_dur (routine)

Calculate duration and modified duration for single step coupon bond

Introduced in release: 1.0
Component: US Bonds
Purpose: Calculates actual Macaulay duration and modified duration for a stepped coupon bond with one step.

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 stpd_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, accurate to as many places as supported by a double precision value. The variable dur contains the calculated duration. The variable mod_dur contains the modified duration.

Error Conditions: Returned values should be ignored for a non-zero status. See Errors.

Last Mod Date: 07/15/1991© 2001 TIPS, Inc.Doc Version: 5.0