Bob, for LF my strategy is this. Starting with a wide aperture I focus and then attempt to gain sufficient coverage and sufficient effective depth of field via tilts and shifts. Failing that I stop down. Then... rinse, repeat... no formulas, no math In LF you are almost always working on issues other than resolution.

f/22 is certainly already incurring diffraction softening. Most LF lenses are giving maximum resolution values across the frame at around f/16 or even f/11. Indeed f/22 is the aperture at which the lens typically reaches highest coverage, not the highest resolution across the image circle.

In MF, lacking the tilts, you wind up stopping down more than would be necessary if you did have tilts. C'est la vie.