LCLi =
UCLi =
w is the span parameter (number of terms in moving average)
ni is the sample size of the ith subgroup
k is the number of standard deviations
is the weighted average of subgroup means

Help created on 10/11/2018