Algorithm on how to find the day of a week | Hacker News Reader