fixed date range check