Pattern @ 40 yards....410 is normally less, as standard.
The distance tho depends upon what you are seeking to gain from the pattern.
If you want to check if a tube or barrel is delivering the marked choke percentage then use 40 yards.
If you wish to check stock fit then 16 yards is appropriate.
If you wish to find a good woodcock load, for example, and are looking at pattern spread rather than density then 20 or 22 might be the bee's knees.
As stated, some use the distance they believe they shoot most birds...that tho is too imprecise, to me....waste of time. Much like shooting at an old oil can.
It works tho, after a fashion.
One can get in the weeds as much as you want patterning....myself, I look at placement re point of aim, spread and the outer 5" ring of the standard pattern re most gamebirds or targets.
Inner core density rarely fails today.
Decide what you want from the pattern and stand at the appropriate distance.
Have fun, don't get too wrapped up in the process tho it can be fun and considier that any pattern is almost never the reason we miss a scattergun shot at a flying gamebird.
We miss because we shoot too quickly or lift wood from wood.