Hi,
the number of the month in A1.
Then try:
=SUMPRODUCT((WEEKDAY(ROW(INDIRECT(DATE(2021,A1,1)&":"&EOMONTH(DATE(2021,A1,1),0))),2)<5)*24)+SUMPRODUCT((WEEKDAY(ROW(INDIRECT(DATE(2021,A1,1)&":"&EOMONTH(DATE(2021,A1,1),0))),2)=5)*8)
Regards
Claus B.
--
Windows10
Microsoft 365 for business