Calculate every nesting