I have this ARIMA(2,1,0) model with one exogenous variable: $$\Delta y_t=c+\phi_2 \Delta y_{t-2}+\beta_x x_t+\varepsilon_t$$
I want to run Ljung Box test of residual autocorrelation with test statistic:
$$Q = n\left(n+2\right)\sum_{k=1}^h\frac{\hat{\rho}^2_k}{n-k}$$
Suppose, I already know what lags $h$ to use. What should be the degrees of freedom here?