cpnpersz
Number of days in coupon period
Syntax
Description
                returns the number of days in the coupon period containing the settlement date. For
                zero coupon bonds, coupon dates are computed as if the bonds have a semiannual
                coupon structure. NumDaysPeriod = cpnpersz(Settle,Maturity)NumDaysPeriod returns a
                    NUMBONDS-by-1 vector containing the number
                of days in the coupon period containing the settlement date.
.
Required input arguments must be number of bonds, NUMBONDS-by-1 or 1-by-NUMBONDS,
conforming vectors or scalars.
 returns
the number of days in the coupon period containing the settlement
date using optional input arguments. NumDaysPeriod = cpnpersz(___,Period,Basis,EndMonthRule,IssueDate,FirstCouponDate,LastCouponDate)
Optional input arguments must be either NUMBONDS-by-1 or 1-by-NUMBONDS conforming
vectors, scalars, or empty matrices.