Returns the number of days from the beginning of the coupon period to the settlement date.
Remarks:
settlement
maturity
frequency
basis
1
2
4
0
The coupon days before settlement calculation options.
The number of days from the beginning of the coupon period to the settlement date.
calculateCouponDaysBeforeSettlement({ settlement: new Date("2011-01-25"), maturity: new Date("2011-11-15"), frequency: 2, basis: 1,}); // 71 Copy
calculateCouponDaysBeforeSettlement({ settlement: new Date("2011-01-25"), maturity: new Date("2011-11-15"), frequency: 2, basis: 1,}); // 71
Returns the number of days from the beginning of the coupon period to 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.