coupdaybs
Days from beginning of coupon period to settlement.
Syntax
Section titled “Syntax”v = coupdaybs(settlement, maturity, frequency, basis)Description
Section titled “Description”Returns the number of days from the start of the coupon period containing settlement up to settlement. Used in accrued-interest calculations.
Example
Section titled “Example”coupdaybs('2011-01-25', '2011-11-15', 2)See also
Section titled “See also”coupdays— Days in the coupon period containing the settlement date.coupdaysnc— Days from settlement to next coupon date.coupncd— Next coupon date after settlement.couppcd— Previous coupon date before settlement.coupnum— Number of coupon payments between settlement and maturity.