Returns the number of days in the coupon period that contains the settlement date.
Remarks:
settlement
maturity
frequency
basis
1
2
4
0
The coupon days calculation options.
The number of days in the coupon period that contains the settlement date.
calculateCouponDays({ settlement: new Date("2011-01-25"), maturity: new Date("2011-11-15"), frequency: 2, basis: 1,}); // 184 Copy
calculateCouponDays({ settlement: new Date("2011-01-25"), maturity: new Date("2011-11-15"), frequency: 2, basis: 1,}); // 184
Returns the number of days in the coupon period that contains the settlement date.
Remarks:
settlement,maturity,frequency, andbasisare truncated to integers.settlementormaturityis not a valid date, an error is thrown.frequencyis any number other than1,2, or4, an error is thrown.basis<0or ifbasis>4, an error is thrown.settlement>=maturity, an error is thrown.