So you need to swap the months for weeks to make that happen... Not sure what you are really asking and I am sure others are not either as it is as simple as changing the month to weeks in the calculations in the example you found. If we are missing something, please leave a further update with more details on what you need. You will of course need weeks in the data model, so the following Design Blog post may help there.
To help users find verified answers, please do not forget to use the "Accept as Solution" button on any post(s) that helped you resolve your problem or question. I now work a compressed schedule, Tuesday, Wednesday and Thursday, so those will be the days I will reply to any follow-up posts.