Am trying to calculate autocorrelation coefficients for lags without changing every formula so it's correct.