What j+1 taken mean and i+1 taken mean

how j+1 works in clear ranges bits from i to j and how j takes values from between
what is the meaning of sometimes we take it from i+1 and sometime we take it from j+1
please explain me in a better way

it depend on situations whether we have to take j or j+1
you can take one small example and check on that
and then chose j or j+1