The COUPDAYBS function in DAX is used to calculate the number of days from the beginning of the coupon period to the settlement date. This is useful for bond valuation and analysis. Syntax COUPDAYBS(<settlement>, <maturity>, <frequency>, [<basis>]) where settlement : The bond's settlement date. This is the date after the issue date when the bond is traded to the buyer. maturity : The bond's maturity date. This is the date when the bond expires. frequency : The number of coupon payments per year (1, 2, or 4). basis (optional): The type of day count basis to use (0 = US (NASD) 30/360, 1 = Actual/actual, 2 = Actual/360, 3 = Actual/365, ...