Detecting a leap year if the year is higher then 1582