Hacker News new | ask | show | jobs
by hennypenny 5373 days ago
Your formula doesn't work. There have been 7 leap days including 1984. The date of the leap day is relevant to your formula because if he were born on Jan 1 there would be a difference in your result. Also, May 14 plus 138 days would have been September 29, not Sept 30.
1 comments

This has to do with when you take the starting point for the day I would assume. Also, I got the number from Wolfram:

http://www.wolframalpha.com/input/?i=May+14+1984+to+Septembe...

In the this case 'to' means 'through' and is inclusive of all the days. By adding the difference we do not twice count the number we arrived at from the first part of your calculation.