FINANCE COUPDAYBS Function

Computes the number of days from the beginning of the coupon period to the settlement date.

Category:Financial

Table of Contents

Syntax

FINANCE('COUPDAYBS', settlement, maturity, frequency, <basis>);

Arguments

settlement

specifies the settlement date of the security. The security settlement date is the date after the issue date when the security is traded to the buyer.

maturity

specifies the maturity date of the security. The maturity date is the date on which the security expires.

frequency

specifies the number of coupon payments per year. For annual payments, frequency=1; for semiannual payments, frequency=2; for quarterly payments, frequency=4.

basis

specifies the type of day count basis to use.

Example: Computing Description: COUPDAYBS

The following example computes the number of days from the beginning of the coupon period to the settlement date.

data _null_;
   settlement=mdy(12,30,1994);
   maturity=mdy(11,29,1997);
   frequency=4;
   basis=2;
   r=finance('coupdaybs', settlement, maturity, frequency, basis);
   put r=;
run;

These statements produce this result:

r=31
Last updated: April 14, 2026