Added leap year correction.