I have an interesting problem i am trying to solve in my c# project, my head is hurting so any advice would be greatly appreciated

Basically i have an employee that works on a 3 week cycle

wk 1 - they work mon

wk 2 - they work wed

## wk 3 - they work fri

wk 4 - they work mon

wk 5 - they work wed .. and so on

I need a formula that will show me what day they worked on any given week, ie what day would they work on week 49 of employment?

Any thoughts on how i may solve this equation?

Cheers Anthony

As discussed in comment we can use modulo (%) operator in your formula.

`int dayInt = (nthWeek % 3)`

;Here is the code:

Implementation: DotnetFiddler