How to calculate whether damage has compromised the structural integrity of a pipeline.