Thank you for the quick response, I guess I have done something wrong then, because it’s not working for me. It’s like the weeknumber generated is the “first” one of the month. Let’s say it’s december, then it prints out 49 but if you go further (a week ahead), it is stuck at 49 until a new month comes.. And then it’s stuck at the new weeknumber..