If current year is a leap year and the date given is after the 28 th of February then it must include the 29 th February
if ( month > 2 and year % 4 == 0 and ( year % 100 != 0 or year % 400 == 0 ) ) : NEW_LINE INDENT day += 1 ; NEW_LINE DEDENT