Source
FOCUS 1.0 sample
Result rows
1
Status
Runs on sample
Execution
PrecomputedRead-only
Result snapshot (UTC)
2026-10-11

Effective savings rate = (contracted cost - effective cost) / contracted cost across all charges in the period, returned as a 0-1 ratio. In this sample effective cost is rounded to whole dollars per row and credits are included, so the rate comes out slightly negative (about -4%).

Effective savings rate

-3.89%
Effective savings rate
Query results
Contracted costEffective costEffective savings rate
$880.38$914.60-$0.04

1 row. Scroll inside the table to see more.

Precomputed result

Inspect Postgres SQL and original FOCUS SQL

Postgres SQL, as run

select sum(contracted_cost) as contracted_cost,
       sum(effective_cost) as effective_cost,
       (sum(contracted_cost) - sum(effective_cost)) / nullif(sum(contracted_cost), 0) as effective_savings_rate
from focus.cost_and_usage
where charge_period_start >= $1::timestamptz
  and charge_period_end < $2::timestamptz

Parameters: $1 = period_start, $2 = period_end

Original FOCUS SQL

SELECT
  SUM(ContractedCost) AS ContractedCost,
  SUM(EffectiveCost) AS EffectiveCost,
  (SUM(ContractedCost) - SUM(EffectiveCost)) / NULLIF(SUM(ContractedCost), 0) AS EffectiveSavingsRate
FROM focus_data_table
WHERE ChargePeriodStart >= ? AND ChargePeriodEnd < ?