The upper band of the BB is calculated by adding 2 times the standard deviations to the Simple Moving Average (SMA), while the lower band is calculated by subtracting 2 times the standard deviation from the SMA.