BAFA Förderrungsrechner

BafaRechner : Bafa-Förderung berechnen

  Zeus cpc 9 (0 Stück)

Zeus cpc 16 (0 Stück)

Zeus cpc 20 (0 Stück)

Zeus cpc 23 (0 Stück)

Zeus cpc 30 (0 Stück)

document.getElementById("delBtn1").addEventListener("click", function(ev) { ev.preventDefault(); minusClick(1); }); document.getElementById("delBtn2").addEventListener("click", function(ev) { ev.preventDefault(); minusClick(2); }); document.getElementById("delBtn3").addEventListener("click", function(ev) { ev.preventDefault(); minusClick(3); }); document.getElementById("delBtn4").addEventListener("click", function(ev) { ev.preventDefault(); minusClick(4); }); document.getElementById("delBtn5").addEventListener("click", function(ev) { ev.preventDefault(); minusClick(5); }); document.getElementById("addBtn1").addEventListener("click", function(ev) { ev.preventDefault(); plusClick(1); }); document.getElementById("addBtn2").addEventListener("click", function(ev) { ev.preventDefault(); plusClick(2); }); document.getElementById("addBtn3").addEventListener("click", function(ev) { ev.preventDefault(); plusClick(3); }); document.getElementById("addBtn4").addEventListener("click", function(ev) { ev.preventDefault(); plusClick(4); }); document.getElementById("addBtn5").addEventListener("click", function(ev) { ev.preventDefault(); plusClick(5); }); // first index left blank #qandd var amounts = [0, 0, 0, 0, 0, 0]; var limits = [0, 7, 14, 40]; var sizes = [0, 1.91, 3.50, 4.40, 5.08, 6.67]; var mfpqm = 140.00; var minbafa = 500.00; var midbafa = 2000.00; var maxbafa = 5600.00; var globBAFA = 0.00; function reCalcBafa() { var totalqm = 0.00; var totalbafa = 0.00; var germanop = new Intl.NumberFormat('de-DE', { style: 'currency', currency: 'EUR' }); for(var i=1;i<6;i++) { totalqm += sizes[i] * amounts[i]; } if(totalqm >= limits[3]) totalbafa = maxbafa; else if(totalqm < limits[1]) totalbafa = minbafa; else totalbafa = mfpqm * Math.ceil(totalqm); if(totalqm == 0.00) totalbafa = 0.00; if(totalqm >= limits[1] && totalbafa < midbafa) totalbafa = midbafa; if(totalqm == limits[2]) totalbafa = midbafa; if(totalbafa > maxbafa) totalbafa = maxbafa; document.getElementById('bafaHaben').innerHTML = germanop.format(totalbafa); globBAFA = totalbafa; return false; } function minusClick(e) { if(amounts[e] > 0) { amounts[e] = amounts[e] - 0.5; } else { amounts[e] = 0; } document.getElementById('viewCnt'+e).innerHTML = amounts[e]; reCalcBafa(); return false; } function plusClick(e) { if(globBAFA >= maxbafa) return; if(amounts[e] < 99) { amounts[e] = amounts[e] + 0.5; } else { amounts[e] = 99; } document.getElementById('viewCnt'+e).innerHTML = amounts[e]; reCalcBafa(); return false; }