Calculates leap years.