COUPDAYS
Financial

Returns the number of days in the coupon period that contains the settlement date

Syntax:

=COUPDAYS(settlement, maturity, frequency, [basis])

Example:

=COUPDAYS("1/25/2023", "11/15/2025", 2)