This a simple question.
The start day is a Saturday and let the input be a non-negative number
The output should be the number of weekdays (Mon-Fri) in the next
x days inclusive.
For example, if
x = 3 then the output should be 2. For
x from 0 onwards the output should be:
Now I am regretting not having asked the question for a user specified day of the week instead of just Saturday. It’s too late to change the question now and a new question would probably be marked as a duplicate. If anyone wanted to add an answer for this extension, I would love to see it.