Use calendar to check for leap year