Added leap year rule.