simplified logic in date_checker