Leap years are easy to calculate. You just need to do a simple division.
Step
Step 1. Start with the year you want to calculate
Step 2. Check if the year is divisible by 4 (the result is an integer with no remainder)
Otherwise, as in 1997, the year is not a leap year. If it is, like 2012, move on to the next point.
Step 3. Check if the year is divisible by 100
If it is divisible by 4, but not by 100, such as 2012, then the year is a leap year. If the year is divisible by 4 and 100, such as 2000, move on to the next point.
Step 4. Check if the year is divisible by 400
If the year is divisible by 100, but not divisible by 400, what is the year no leap year. If the year is divisible by both, the year is a leap year. So 2000 is a leap year.
Tips
- Leap years: 1600, 1604, 1608, 1612, 1616…1684, 1688, 1692, 1696, 1704 (1700 excluded, why?), 1708, 1712…1792, 1796, 1804 (1800 excluded), 1808, 1812… 1892, 1896, 1904 (1900 excluding), 1908, 1912…1992, 1996, 2000 (2000 included, why?), 2004, 2008, 2012…2092, 2096, 2104 (2100 excluding)…2196, 2204…2296, 2304…2396, 2400 (why?), 2404… etc.
- Any year that is divisible by "4" is a leap year. 1 year is equal to '365 days + 6 hours', so it is equal to 365 1/4 days. Every 4 years, 6 hours will become one day (6X4=24 hours). That's why we have one extra day in February.