def _get_predict_end(self, end, dynamic=False):
        end, out_of_sample = super(ARIMA, self)._get_predict_end(end, dynamic)
        if 'mle' not in self.method and not dynamic:
            end -= self.k_ar

        return end - self.k_diff, out_of_sample
Returns last index to be forecast of the differenced array.
dataset/ETHPy150Open statsmodels/statsmodels/statsmodels/tsa/arima_model.py/ARIMA._get_predict_end