Note: This was originally posted by an inactive account. Content was preserved by moving under an admin account.
Originally posted by: stonysmithI need to work out all the details, but here is a (partial) suggestion:
days=dateSubtract(EndDate,StartDate)
weeks = int(days/7)
weekdays = days - weeks*2
The trouble is you have to then add several IF conditions to adjust for cases when the period starts or ends on a Saturday or Sunday.