Corrosion allowance is not something you calculate. It all depends on you process medium, your material of construction, your temperature, and industry experience with these conditions. Provide these and we'll be able to assist.
It's not a calculation but sort of a rule of thumb.