added date range recalculation conditions for week agenda view