In equation for calculation of longitionsl stresses in flange hub SH (table 4.16.8 Div.2 Sec. VIII) value B is inside diameter of the flange.
Accroding to para 4.16.12, if "B < 20g1", instead of "B" we may adopt "B1 = B + g1" for loose and integral type flanges, if f< 1 (although a minimum value of f = 1 is permitted) and "B1 = B + g0" for integral type flanges, if f <= 1.
Tell, please, where this comment is considered, when calculation of flanged joints is performed by PE Elite.