The calculations are very time-consuming, and you are highly unlikely to find an overstress within the flange unless the piping is badly overstressed locally.

We just assume, in piping, that the flanges will leak before breaking. So, we do a leakage check - if it passes we are OK. This assumption is validated by many years of operating experience with many millions of flange pairs - the flanges themselves normally do not fail.
_________________________
CraigB