Fix for week number calculation logic.