title: Calculating day-of-week in years greater than 9999
body: <p>I was wondering if there are any algorithms that calculate the day of week in years that are greater than the year 9999.</p>
  
  <p>Algorithms such <a href="http://en.wikipedia.org/wiki/Zeller%27s_congruence" rel="nofollow">Zeller’s algorithm</a> or this one <a href="http://en.wikipedia.org/wiki/Calculating_the_day_of_the_week" rel="nofollow">here</a> gives false results, since they handle only 4 digit year.</p>
  
  <p>Thank you.</p>