The ASME B&PV code gives an eq'n to calculate minimum required pipe wall thickness for given pipe dimensions (OD,ID), design pressure and allowable stress on the pipe material. The eq'n also includes an 'A' factor, which is to account for additional thickness required for, say, material removed...