With due respect to the math forum, I have to point out that the question there isn't dealing with an application like Excel. For a normal (read manual with no Excel) calculation, one would have to take in to account all those calculation of leaps. So with no credit taken away from there, you can safely consider the above post as a viable solution to what you are looking for.