Cable Length Calculation