"Corrosion allowance" is something you assign at the beginning of life (or at the time of re-rating) to determine an effective life of the pipe. So, if you are designing a pipeline using 0.322 inch wt 8-inch nominal pipe, you have to subtract your corrosion allowance from the actual wall thickness to determine the metal mass that participates in the strength calculation.
You pick that corrosion allowance based on expected wastage per year times the number of years you are planning for the pipe to last. Let's say that the expected life was 30 years and the corrosion allowance was 3 mm. That says that your current pipe wall thickness should be assumed to be 3 mm thinner than original (i.e., the corrosion allowance is gone).
Now if you are re-rating the pipe for another 30 years, you can either measure the current wall thickness in a large number of places (take readings all around the pipe at every place you anticipate higher-than-normal corrosion rates) and then use the minimum value measured (not the average) as your new wall thickness. Subtract the corrosion allowance from that and calculate the new MAWP based on the remaining metal mass.
David