{# Storage Billing Analysis — all datasets with cost comparison #} {% if storage_billing_datasets and storage_billing_datasets | length > 0 %} {% set savings_count = storage_billing_datasets | selectattr('monthly_savings', 'gt', 0) | list | length %}

Storage Billing Analysis

Cost comparison of logical vs physical billing for each dataset

{% if savings_count > 0 %} {{ savings_count }} can save {% endif %} {{ storage_billing_datasets | length }} dataset{{ 's' if storage_billing_datasets | length != 1 else '' }}
{% for ds in storage_billing_datasets %} {% endfor %}
Project Dataset Tables Billing Compression Logical Cost Physical Cost Difference Recommendation
{{ ds.project_name }} {{ ds.dataset }} {{ ds.table_count }} {% with billing_model=ds.billing_model %} {% include "components/storage_billing_badge.html" %} {% endwith %} {{ "%.1f"|format(ds.compression_ratio) }}x ${{ "%.2f"|format(ds.logical_cost) }}/mo ${{ "%.2f"|format(ds.physical_cost) }}/mo {% if ds.monthly_savings > 0 %} -${{ "%.2f"|format(ds.monthly_savings) }}/mo ({{ "%.0f"|format(ds.savings_pct) }}%) {% elif ds.monthly_savings < 0 %} +${{ "%.2f"|format(ds.monthly_savings | abs) }}/mo {% else %} — {% endif %} {% if ds.monthly_savings > 0 %}
Switch to PHYSICAL {% if ds.has_solution %} {% endif %}
{% elif ds.billing_model == 'PHYSICAL' %} Already physical {% else %} Keep logical {% endif %}
{# Total savings footer #} {% set total_savings = storage_billing_datasets | selectattr('monthly_savings', 'gt', 0) | sum(attribute='monthly_savings') %}
{% if total_savings > 0 %} Total potential savings from switching {{ savings_count }} dataset{{ 's' if savings_count != 1 else '' }} {% else %} No datasets would benefit from switching to physical billing {% endif %} {% if total_savings > 0 %}
${{ "%.2f"|format(total_savings) }}/month (${{ "%.2f"|format(total_savings * 12) }}/year)
{% endif %}
{# Pricing explainer #}

Why can physical billing cost more?

2× per-GB rate. Physical charges $0.04/GB active vs $0.02/GB for logical — so you need >50% compression just to break even.
Time travel & fail-safe. Physical billing includes 7 days of historical snapshots and 7 days of disaster-recovery storage at $0.04/GB each — invisible on logical billing.
Compression ratio < 1.0. When shown below 1.0, physical bytes exceed logical bytes — meaning time travel/fail-safe overhead outweighs any compression gain.

Rates shown are US multi-region defaults. Physical billing benefits large, rarely-updated, highly-compressible datasets.

{% endif %}