Cable Length Calculation Formula