From f7b54393875319c2c0be023e3279112230b50b96 Mon Sep 17 00:00:00 2001 From: m Date: Thu, 2 Apr 2026 10:41:57 +0200 Subject: [PATCH] =?UTF-8?q?feat:=20billableaua=20calculator=20=E2=80=94=20?= =?UTF-8?q?show=20impact=20of=20missed=20days?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sites/billableaua.de/index.html | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/sites/billableaua.de/index.html b/sites/billableaua.de/index.html index e7db898..f5a75c8 100644 --- a/sites/billableaua.de/index.html +++ b/sites/billableaua.de/index.html @@ -419,7 +419,18 @@ '= ' + workingDays + ' Arbeitstage

' + '' + hours.toLocaleString('de-DE') + ' Stunden ÷ ' + workingDays + ' Tage = ' + '' + perDayStr + ' Stunden billable pro Tag.' + - verdict; + verdict + + '' + + 'Ein Tag krank? Dann sind es ' + + (workingDays > 1 ? (hours / (workingDays - 1)).toFixed(1).replace('.', ',') : '∞') + + ' Stunden auf ' + (workingDays - 1) + ' Tage.' + + ' Noch ein Tag? ' + + (workingDays > 2 ? (hours / (workingDays - 2)).toFixed(1).replace('.', ',') : '∞') + + '.' + + ' Eine Woche? ' + + (workingDays > 5 ? (hours / (workingDays - 5)).toFixed(1).replace('.', ',') : '∞') + + '.' + + '
Jeder verpasste Tag erhöht den Druck auf alle anderen.
'; } document.getElementById('hours').addEventListener('input', calculate);