>>>>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, or july 2017 (mondays on 3. 10. 17. 24. and 31. of the month).