From 235aec6d1e1b99350eac7a26876412f99502e5ec Mon Sep 17 00:00:00 2001 From: sharath <29162020+tnfssc@users.noreply.github.com> Date: Fri, 27 Jun 2025 15:45:49 +0000 Subject: [PATCH] fix(billing): correct cutoff date for monthly usage calculations to June 27, 2025 --- backend/services/billing.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/services/billing.py b/backend/services/billing.py index 9f3a488c..db1c7dba 100644 --- a/backend/services/billing.py +++ b/backend/services/billing.py @@ -231,7 +231,7 @@ async def calculate_monthly_usage(client, user_id: str) -> float: # Use fixed cutoff date: June 27, 2025 midnight UTC # Ignore all token counts before this date - cutoff_date = datetime(2025, 6, 28, 0, 0, 0, tzinfo=timezone.utc) + cutoff_date = datetime(2025, 6, 27, 0, 0, 0, tzinfo=timezone.utc) # Use the later of the two dates (start of month or cutoff date) start_of_month = max(start_of_month, cutoff_date)