That's quite cute! I was wondering about that, I figured it was something to do with the overflow of bytes. Day % 256.
I saw that first in this riddle collection:
http://www.ocf.berkeley.edu/.../riddles/intro.shtml
I saw that first in this riddle collection:
http://www.ocf.berkeley.edu/.../riddles/intro.shtml