Returns the number of coupons payable between the settlement date and maturity date, rounded up to the nearest whole coupon.
The security’s settlement date. The security settlement date is the date after the issue date when the security is traded to the buyer.
The security’s maturity date. The maturity date is the date when the security expires.
The number of coupon payments per year. For annual payments, frequency = 1; for semiannual, frequency = 2; for quarterly, frequency = 4.
The type of day count basis to use.
Contributors: Alberto Ferrari, Marco Russo
Microsoft documentation: https://support.microsoft.com/en-us/office/coupnum-function-a90af57b-de53-4969-9c99-dd6139db2522