Returns the number of days in a coupon period.

Namespace: Imsl.Finance
Assembly: ImslCS (in ImslCS.dll) Version: 6.5.0.0

Syntax

C#
double DaysInPeriod(
	DateTime finalDate,
	Bond..::.Frequency frequency
)
Visual Basic (Declaration)
Function DaysInPeriod ( _
	finalDate As DateTime, _
	frequency As Bond..::.Frequency _
) As Double
Visual C++
double DaysInPeriod(
	DateTime finalDate, 
	Bond..::.Frequency frequency
)

Parameters

finalDate
Type: System..::.DateTime
A DateTime object containing the final date of the coupon period.
frequency
Type: Imsl.Finance..::.Bond..::.Frequency
The Frequency specifying the number of coupon periods per year. This is typically 1, 2 or 4.

Return Value

A int containing the number of days in the coupon period.

See Also