R
Ron2005
Relative to the "answer" being 4 instead of 5:
The reason is very simple, 12/23 is a Friday and you have said NOT to
count Fridays as one of the days.
Now the "resolution" to that problem is probably no where near as
simple. To even attempt at a programmatic solution I would need to see
a whole series of date ranges incrementing from 2 days through the max
that you would want and have them start on the same date and tell us
the answers that you think you want the logic to return. Given that we
could probably figure out the logic of when to count friday and when
NOT to count friday (or for that matter Saturday or Sunday).
Ron
The reason is very simple, 12/23 is a Friday and you have said NOT to
count Fridays as one of the days.
Now the "resolution" to that problem is probably no where near as
simple. To even attempt at a programmatic solution I would need to see
a whole series of date ranges incrementing from 2 days through the max
that you would want and have them start on the same date and tell us
the answers that you think you want the logic to return. Given that we
could probably figure out the logic of when to count friday and when
NOT to count friday (or for that matter Saturday or Sunday).
Ron