function for testing continuous date range