You can use the formula here to determine weekdays versus weekends, then go from there:
Answer brilliantly stolen from @BrianJ’s reply on that post