Do the first and last day count?
Yes, if they fall from Monday to Friday. A range from Friday through the following Monday counts two weekdays. A range from Monday through Friday of the same week counts five. If you enter the same date twice, the result is one on a weekday and zero on a weekend.
Account for public holidays or a different workweek
The tool uses a Monday-to-Friday schedule. It counts public holidays that fall on weekdays, so subtract any closures that apply to your office or location. If both weekdays and weekends matter, use Date Difference and add one when you want an inclusive count.