Calculating allowable loads on tube flanges