Calculate sums only for visible stacks