cable calculations