NETWORKDAYS.INTL
Date

Returns the number of whole workdays between two dates using custom weekend parameters

Syntax:

=NETWORKDAYS.INTL(start_date, end_date, [weekend], [holidays])

Example:

=NETWORKDAYS.INTL("1/1/2024", "12/31/2024", 1)