If the year is divisible by 4, it is a leap year. However, if the year is divisible by 100, it is not a leap year, unless… the year is also divisible by 400.