By and large, the flange seal will fail before the pipe metal will fail, which will fail before the metal flange will, assuming you're using standard flanges.

Thus, a flange stress check is largely academic, unless you have non-standard connectors, in which case, you're better off getting allowable loads from the manufacturer (except they rarely will offer such a thing).