Simplify capture pruning margin formula