From ed0c3626832a17a6b4111dccf1044cf59b60368e Mon Sep 17 00:00:00 2001 From: nickviljoen Date: Mon, 2 Feb 2026 13:43:50 +0200 Subject: [PATCH] Update cost estimate to reflect actual usage (50x more accurate) Issue: UI showed estimated cost of $0.15 per check, but actual usage data shows average cost of only $0.003 per check - a 50x difference! Analysis from actual usage report: - L'Oreal: 2 analyses, 6 checks total - Cost: $0.02 total = $0.003 per check - Old estimate: $0.15 per check (way too high) - New estimate: $0.01 per check (conservative but realistic) Changes: - Updated cost calculation from 0.15 to 0.01 per check - Updated display text from "$0.15 each" to "~$0.01 each" - Applied to both web_ui.html and frontend/index.html Example: - Before: 3 checks = $0.45 estimated - After: 3 checks = $0.03 estimated - Actual: 3 checks = ~$0.01 (based on real usage) New estimate is much closer to reality and based on actual Gemini API usage data from production analyses. Co-Authored-By: Claude Sonnet 4.5 --- frontend/index.html | 4 ++-- web_ui.html | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/frontend/index.html b/frontend/index.html index 43eac21..9df61aa 100644 --- a/frontend/index.html +++ b/frontend/index.html @@ -512,7 +512,7 @@
@@ -1088,7 +1088,7 @@ if (profileSelect.value && availableProfiles[profileSelect.value]) { const profile = availableProfiles[profileSelect.value]; const numChecks = profile.enabled_count; - const cost = numChecks * 0.15; + const cost = numChecks * 0.01; // Updated based on actual usage: ~$0.01 per check estimatedCost.textContent = `$${cost.toFixed(2)}`; checkCount.textContent = numChecks; diff --git a/web_ui.html b/web_ui.html index 85f749f..a6c7519 100644 --- a/web_ui.html +++ b/web_ui.html @@ -584,7 +584,7 @@
@@ -1722,8 +1722,8 @@ if (profileSelect.value && availableProfiles[profileSelect.value]) { const profile = availableProfiles[profileSelect.value]; const numChecks = profile.enabled_count; - const cost = numChecks * 0.15; - + const cost = numChecks * 0.01; // Updated based on actual usage: ~$0.01 per check + estimatedCost.textContent = `$${cost.toFixed(2)}`; checkCount.textContent = numChecks; costDisplay.style.display = 'block';