def METHOD_NAME(self, previous_request_time: Period):
    """
    Calculate next slice length in days based on previous slice length and
    processing time.
    """
    minutes_spent = previous_request_time.total_minutes()
    if minutes_spent == 0:
        self._current_range = self.DEFAULT_RANGE_DAYS
    else:
        days_per_minute = self._current_range / minutes_spent
        next_range = math.floor(days_per_minute / self.REQUEST_PER_MINUTE_LIMIT)
        self._current_range = min(next_range or self.DEFAULT_RANGE_DAYS, self.MAX_RANGE_DAYS)
    self._range_adjusted = True