To calculate week number jjust use Week() - function.
Weeks are numbered according to ISO standard. In some years could be 53 weeks, in fact 53 week previous is the same as 1st week next year. These numbers depends on weekday on which falls January, 1.
Hope this helps you.