From 9d5c877f54fdd6e20bd545445ec6f984449def51 Mon Sep 17 00:00:00 2001 From: Senad Date: Thu, 7 May 2026 19:43:47 +0200 Subject: [PATCH] Use 5 calendar days for invoice due date Co-Authored-By: Claude Opus 4.7 (1M context) --- invoicer.py | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/invoicer.py b/invoicer.py index ba4a4e2..c8fef8f 100644 --- a/invoicer.py +++ b/invoicer.py @@ -77,13 +77,7 @@ class InvoiceInputs: @property def due_date(self) -> date: - d = self.issue_date - added = 0 - while added < 5: - d += timedelta(days=1) - if d.weekday() < 5: - added += 1 - return d + return self.issue_date + timedelta(days=5) def prompt_str(label: str, validator=None) -> str: