From 0ba6d86236baa6981cc61c82ad3776914b211b3e Mon Sep 17 00:00:00 2001 From: IgorArthur Date: Wed, 6 Nov 2024 23:40:32 -0300 Subject: [PATCH] Fixes calculating --- islands/PriceCalculatorIsland.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/islands/PriceCalculatorIsland.tsx b/islands/PriceCalculatorIsland.tsx index 7bae73b2..3baf3a80 100644 --- a/islands/PriceCalculatorIsland.tsx +++ b/islands/PriceCalculatorIsland.tsx @@ -623,9 +623,9 @@ function calculateScenario(pageviews: number, infrastructureType: string) { const { bandwidth: bandwidthCost, request: requestCost } = EFFICIENTY_COSTS[infrastructureType]; - const bandwidth = pageviews * bandwidthCost; + const bandwidth = pageviews * bandwidthCost * 0.025; const request = pageviews * requestCost * 0.0004; - const total = bandwidth + request * 0.00005; + const total = bandwidth + request; return { total, bandwidth, request }; }