drumID = 6;
drumOD = 10;
drumWidth = 3;
cableDia = .06;

numWraps = drumWidth/cableDia;
numLayers = floor(((drumOD - drumID) / 2) / cableDia);
totalLength = 0;


for i=1:numLayers
   layerDiameter = drumID + (i * cableDia);
   layerLength(i) = pi() * layerDiameter * numWraps;
   totalLength = totalLength + layerLength(i);
end
fprintf('Total length (m) = %f\n', totalLength * .0254);


    