1const l=document.querySelectorAll("#currencyButtons button"),o=document.getElementById("currencySymbol");l.forEach(e=>{e.addEventListener("click",()=>{l.forEach(s=>s.classList.remove("selected")),e.classList.add("selected"),o.textContent=e.dataset.currency})});const c=document.getElementById("includeDaysYes"),a=document.getElementById("includeDaysNo"),r=document.getElementById("daysOfWeek");c.addEventListener("click",()=>{c.classList.add("selected"),a.classList.remove("selected"),r.classList.remove("hidden")});const u=document.querySelectorAll("#week button");u.forEach(e=>{e.addEventListener("click",()=>{e.classList.toggle("selected")})});a.addEventListener("click",()=>{a.classList.add("selected"),c.classList.remove("selected"),r.classList.add("hidden")});document.getElementById("calculateButton").addEventListener("click",()=>{const e=parseFloat(document.getElementById("principal").value),s=parseFloat(document.getElementById("rate").value)/100,i=parseInt(document.getElementById("years").value)||0,y=parseInt(document.getElementById("months").value)||0,m=parseInt(document.getElementById("days").value)||0,E=parseFloat(document.getElementById("reinvestRate").value)/100,g=i*365+y*30+m,d=Array.from(u).filter(t=>t.classList.contains("selected")).map(t=>t.textContent);let n=e;for(let t=0;t<g;t++){const v=new Date(new Date().setDate(new Date().getDate()+t)).getDay(),B=["S","M","T","W","T","F","S"];(d.length===0||d.includes(B[v]))&&(n+=n*s*E)}document.getElementById("futureValue").textContent=o.textContent+n.toFixed(2)});
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.