calculating methods for determining pipe residual lifetime