function calcDraft(){var t=parseFloat(document.getElementById("t").value)||30;var pos=document.getElementById("pos").value;var pct=pos==="lead"?0:pos==="shoulder"?0.03:pos==="hip"?0.07:0.12;var saved=Math.round(t*60*pct);var adj=Math.round(t*60*(1-pct));document.getElementById("r1").textContent=saved+"s";document.getElementById("r2").textContent=Math.floor(adj/60)+":"+String(adj%60).padStart(2,"0");document.getElementById("desc").innerHTML="For a "+t+"-minute race in "+pos+" position:
Time saved: ~"+saved+" seconds
Effective time: "+Math.floor(adj/60)+":"+String(adj%60).padStart(2,"0")+"
Hip draft saves ~7-10%. Toe drafting in sprint finish can save 12%+.";document.getElementById("results").style.display="block";}