COUPDAYBS(settlement,maturity,frequency[,basis])
Returns the number of days from the beginning of the coupon period to the settlement date.