The main objective of this application is to calculate either the maximum allowable pressure given a corrosion allowance, or to calculate the corrosion allowance given a maximum allowable pressure. Pipe outer diameter, wall thickness, stress value and mill tolerance will all influence the calculation outcome. The design temperature will affect the stress value of the pipe material and therefore change the calculation result.