Write a function that accept integer (numer of days) and returns the exact date. Note the leap years.
So, to check your program:
1 should return 1 Jan 1900 (so we start counting from 1)
14600 should return 22 Dec 1939
21961 should return 16 Feb 1960
40361 should return 3 Jul 2010
edit: corrected the expected result for 21961