Skip to content

Commit

Permalink
Fixes calculating
Browse files Browse the repository at this point in the history
  • Loading branch information
IgorArthur committed Nov 7, 2024
1 parent e28c076 commit 0ba6d86
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions islands/PriceCalculatorIsland.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 };
}
Expand Down

0 comments on commit 0ba6d86

Please sign in to comment.