In years.in if EDOEY is 365 and endYear is a leap year then EDOEY becomes 366 otherwise remains at 365.