Mechanistic Model for Prediction of the Top of the Line Corrosion Risk