def get_end_date(self, dates, end_date):
        """find the end date of each issues batch"""

        if end_date != self.historical_limit_date:
            return dates[-1]["created_at"]