FINANCE COUPDAYS Function

Computes the number of days in the coupon period that contains the settlement date.

Category:Financial

Table of Contents

Syntax

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

Arguments

settlement

specifies the settlement date.

maturity

specifies the maturity date.

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 optional day count value.

Example: Computing Description: COUPDAYS

The following example computes the number of days in the coupon period that contains the settlement date.

data _null_;
   settlement=mdy(1,25,2007);
   maturity=mdy(11,15,2008);
   frequency=2;
   basis=1;
   r=finance('coupdays', settlement, maturity, frequency, basis);
   put r=;
run;

These statements produce this result:

r=181
Last updated: April 14, 2026