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

num_dper_fb (routine)

Calculate the number of coupon periods between 2 dates for a periodic coupon payment security

Introduced in release: 1.0
Component: Generic
Purpose: Calculate the number of coupon periods between 2 given dates. The function can count forward from the "e" (earlier) date or backward from the "l" (later) date based on the value of the variable period_direction. The function considers day_type and eom_adj.

Special Considerations: Only this routine can count forwards from the earlier date. All other period routines count backwards.

Results: The function returns the calculated number of periods accurate to as many places as supported by a double precision value. The fractional part of the answer is calculated using the days remaining in the period over the days in the period (taking into consideration day_type).

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

Last Mod Date: 10/25/1994© 2001 TIPS, Inc.Doc Version: 5.0