The logic of check whether the year is a Leap Year is wrong.

Two cases to check the Leap Year:
1. The Year could be divisible by 4 and not be divisible by 100
or
2. The Year could be divisible by 400