>>>>>Well, let me beat the horse Dragan already targeted from another angle:
>>>>>there are months with more than 28 days, which your code will press into 4 weeks. Some weeks of those I'd prefer not to work but count as holiday weeks as they have more than 7 days ;-)
>>>>
>>>>You are lucky that you only have to work 35 hours a week :). In American, we work 24/7 :).
>>>
>>>Then why create a function to create 24/8, 24/9 and 24/10 weeks as well ?
>>
>>Sorry I miss your point (if you are not joking). I could not find a case where my function (above) would return any other number but 1,2,3, or 4. Where do you get 8,9,10?
>
>From the meaning of 24/7, which, unzipped, means "24 hours a day, 7 days a week" - and he urged you to surpass the productivity of that by cramming more days into a week.
>
>There are months with five mondays. Just take anything longer than february and a monday on 1st or 2nd, for instance november 2016.
Thank you for clarifying. I will either use Antonio's approach (once I understand it) or change my code to account for the 5th week.
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham