Compute eris and istable start indexes