This is similar to Calculating dates given two dates excluding weekend but a different problem.
The question is "I was given a task N weekdays ago. How many days ago was this?"
On a Friday, 3 weekdays ago is 3 days ago. On a Monday, 3 weekdays ago is 5 days ago.
I can write a very simple solution by iterating. However, it strikes me that it should be possible to do this as an O(1) operation. A close but wrong answer is N + (7/5)N. Any tips?