I am trying to find a way to find out which week we are in based on a rolling period.
There is a choice of 2,3 or 4 week periods that the customer can select and I need to then work whether we are in week x of the period. To make matter worse the can all have a different start date.
Basically the start date could be 3 Dec 07 and a four week rolling period would make this week 4 of the second block of 4 (ie start was 8 weeks ago).
Or it could be 10 Dec 07 and a 2 week period and this would be week 1 of the 4 block.
Make sense! Struggling to think of a logical way to calculate this and would appreciate any pointers.
There is a choice of 2,3 or 4 week periods that the customer can select and I need to then work whether we are in week x of the period. To make matter worse the can all have a different start date.
Basically the start date could be 3 Dec 07 and a four week rolling period would make this week 4 of the second block of 4 (ie start was 8 weeks ago).
Or it could be 10 Dec 07 and a 2 week period and this would be week 1 of the 4 block.
Make sense! Struggling to think of a logical way to calculate this and would appreciate any pointers.