That'll open the calendar every time you load in a new area too. I'd suggest using
PLAYER_LOGIN instead.
If you need help converting code into an addon, there's a
handy tool to do that. Just give it a name for the title and paste the code in the area below.