{"id":25723,"date":"2026-11-24T17:45:58","date_gmt":"2026-11-24T17:45:58","guid":{"rendered":"https:\/\/waydev.co\/code-churn-calculator\/"},"modified":"2026-11-24T17:45:58","modified_gmt":"2026-11-24T17:45:58","slug":"code-churn-calculator","status":"publish","type":"page","link":"https:\/\/waydev.co\/fr\/code-churn-calculator\/","title":{"rendered":"Code Churn Calculator"},"content":{"rendered":"<style>.wdlab{max-width:1240px;margin:0 auto 70px;padding:0 24px;color:#13223b;line-height:1.65}.wdlab *{box-sizing:border-box}.wdlab h1{font-size:clamp(36px,5vw,60px);color:#f3f7ff!important;margin:15px 0;font-weight:800;line-height:1.15;letter-spacing:-.035em}.wdlab .hero{position:relative;isolation:isolate;padding:clamp(48px,7vw,95px) 0;margin:0 0 35px;color:white}.wdlab .hero:before{content:\"\";position:absolute;z-index:-1;inset:0 auto 0 50%;width:100vw;transform:translateX(-50%);background:radial-gradient(ellipse at 85% 55%,#183e78,#0b1730 42%,#05070d 78%)}.wdlab .hero p{color:#c6d3e6;max-width:720px;font-size:19px}.wdlab .hero a{color:#a4caff}.wdlab .eyebrow{display:inline-block;color:#9bc9ff;background:#0c172b;border:1px solid #234577;border-radius:30px;padding:6px 14px;font-size:12px;letter-spacing:.12em;text-transform:uppercase;font-weight:750;margin-top:12px}.wdlab .panel{background:#0b1424;border:1px solid #263b59;padding:clamp(18px,4vw,34px);border-radius:10px;color:#e7effc}.wdlab .grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 24px}.wdlab label{display:block;font-weight:650;color:#e7effc}.wdlab input,.wdlab textarea{display:block;width:100%;min-width:0;padding:12px;margin:6px 0;border:1px solid #3b5274;border-radius:6px;background:#17253c;color:#f3f7ff;font:inherit}.wdlab output{display:block;white-space:pre-line;padding:22px;margin-top:20px;background:#111e33;border:1px solid #3b5274;border-radius:8px;font-size:17px;color:#e7effc;overflow-wrap:anywhere}.wdlab .btn{display:inline-block;background:#397ff0;color:white!important;text-decoration:none;padding:12px 20px;border:0;border-radius:6px;font:inherit;font-weight:650;cursor:pointer;margin-top:15px}.wdlab .editorial{padding:30px 0;border-bottom:1px solid #dce7f5}.wdlab .editorial p{max-width:900px}.wdlab .cta{padding:30px 0}.wdlab a{color:#1769e9}body:has(.wdlab) .general-content{padding-top:0!important;margin-top:0!important}body:has(.wdlab) .page-header{display:none!important}body:has(.wdlab){overflow-x:clip}@media(max-width:650px){.wdlab{padding:0 15px}.wdlab .grid{grid-template-columns:1fr}}<\/style><div class=\"wdlab\"><section class=\"hero\"><a href=\"\/lab\/\">Waydev Intelligence Lab<\/a><div><span class=\"eyebrow\">Code quality<\/span><\/div><h1>Code Churn Calculator<\/h1><p>Estimate the proportion of changed code rewritten or removed within a defined observation window. Use your own inputs, without registration.<\/p><\/section><div class=\"panel\"><form id=\"wdlab-form\"><div class=\"grid\"><label>Lines originally added<input name=\"q0\" type=\"number\" min=\"0\" step=\"any\" required><\/label><label>Of those lines, rewritten or removed<input name=\"q1\" type=\"number\" min=\"0\" step=\"any\" required><\/label><\/div><button type=\"submit\" class=\"btn\">Generate result<\/button><output aria-live=\"polite\" id=\"wdlab-out\">Your result will appear here.<\/output><\/form><\/div><section class=\"editorial\"><h2>How it works<\/h2><p>Churn = originally added lines rewritten or removed within the chosen window divided by originally added lines. Definitions vary; count each original line only once.<\/p><h3>Example<\/h3><p>If 120 of 1,000 originally added lines are rewritten, churn is 12%.<\/p><p>Do not enter confidential information. Review the output before using it in a business decision.<\/p><p>Read the <a href=\"\/code-churn\/\">related Waydev guide<\/a>.<\/p><\/section><section class=\"cta\"><h2>Turn this insight into continuous engineering intelligence<\/h2><p>Connect engineering data and improve visibility into delivery, investment and developer experience.<\/p><a class=\"btn\" href=\"\/demo\/\">Schedule a demo<\/a> <a href=\"\/lab\/\">All Lab tools<\/a><\/section><\/div><script>(function(){const f=document.getElementById('wdlab-form'),o=document.getElementById('wdlab-out');if(!f||!o)return;f.addEventListener('submit',function(e){e.preventDefault();const v=Array.from(new FormData(f).values());o.textContent=(function(){const a=Number(v[0]),b=Number(v[1]);if(a<=0||b>a)return \"Enter positive added lines and a rewritten or removed count no greater than added lines.\";return \"Estimated code churn: \"+(100*b\/a).toFixed(1)+\"%\\nRewritten or removed lines: \"+b+\"\\nOriginal lines retained: \"+(a-b)+\"\\nInterpret churn with change type, review context and observation window.\";})()})})();<\/script>","protected":false},"excerpt":{"rendered":"<p>Waydev Intelligence Lab Code quality Code Churn Calculator Estimate the proportion of changed code rewritten or removed within a defined observation window. Use your own inputs, without registration. Lines originally addedOf those lines, rewritten or removed Generate resultYour result will appear here. How it works Churn = originally added lines rewritten or removed within the [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_acf_changed":false,"content-type":"","footnotes":""},"class_list":["post-25723","page","type-page","status-publish","hentry"],"acf":[],"_links":{"self":[{"href":"https:\/\/waydev.co\/fr\/wp-json\/wp\/v2\/pages\/25723","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/waydev.co\/fr\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/waydev.co\/fr\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/waydev.co\/fr\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/waydev.co\/fr\/wp-json\/wp\/v2\/comments?post=25723"}],"version-history":[{"count":0,"href":"https:\/\/waydev.co\/fr\/wp-json\/wp\/v2\/pages\/25723\/revisions"}],"wp:attachment":[{"href":"https:\/\/waydev.co\/fr\/wp-json\/wp\/v2\/media?parent=25723"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}