remove tertiary operators from leap year calc