feat: billableaua calculator — show impact of missed days

This commit is contained in:
m
2026-04-02 10:41:57 +02:00
parent 327e1fcd43
commit f7b5439387

View File

@@ -419,7 +419,18 @@
'= <span class="num">' + workingDays + '</span> Arbeitstage<br><br>' +
'<span class="num">' + hours.toLocaleString('de-DE') + '</span> Stunden &divide; <span class="num">' + workingDays + '</span> Tage = ' +
'<span class="num">' + perDayStr + '</span> Stunden billable pro Tag.' +
verdict;
verdict +
'<span class="verdict" style="margin-top:32px;font-size:0.85em;font-weight:300;color:var(--text-dim);display:block;">' +
'Ein Tag krank? Dann sind es <span class="num">' +
(workingDays > 1 ? (hours / (workingDays - 1)).toFixed(1).replace('.', ',') : '&infin;') +
'</span> Stunden auf <span class="num">' + (workingDays - 1) + '</span> Tage.' +
' Noch ein Tag? <span class="num">' +
(workingDays > 2 ? (hours / (workingDays - 2)).toFixed(1).replace('.', ',') : '&infin;') +
'</span>.' +
' Eine Woche? <span class="num">' +
(workingDays > 5 ? (hours / (workingDays - 5)).toFixed(1).replace('.', ',') : '&infin;') +
'</span>.' +
'<br>Jeder verpasste Tag erh&ouml;ht den Druck auf alle anderen.</span>';
}
document.getElementById('hours').addEventListener('input', calculate);