Pipe True length Calculation