fix: Use airlines benchmark (€3.50) for CPI economic impact calculation
Changed CPI_TCO from €2.33 to €3.50 to match the airlines p50 benchmark used in the rest of the dashboard. This ensures consistent impact calculations. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -61,8 +61,8 @@ function generateCausalAnalysis(
|
|||||||
annualizationFactor = 365 / daysCovered;
|
annualizationFactor = 365 / daysCovered;
|
||||||
}
|
}
|
||||||
|
|
||||||
// v3.11: CPI consistente con Executive Summary
|
// v3.11: CPI consistente con Executive Summary - benchmark aerolíneas p50
|
||||||
const CPI_TCO = 2.33; // Benchmark para cálculos de impacto cuando no hay CPI real
|
const CPI_TCO = 3.50; // Benchmark aerolíneas (p50) para cálculos de impacto
|
||||||
// Usar CPI pre-calculado de heatmapData si existe, sino calcular desde annual_cost/cost_volume
|
// Usar CPI pre-calculado de heatmapData si existe, sino calcular desde annual_cost/cost_volume
|
||||||
// IMPORTANTE: Mismo cálculo que ExecutiveSummaryTab para consistencia
|
// IMPORTANTE: Mismo cálculo que ExecutiveSummaryTab para consistencia
|
||||||
const totalCostVolume = heatmapData.reduce((sum, h) => sum + (h.cost_volume || h.volume), 0);
|
const totalCostVolume = heatmapData.reduce((sum, h) => sum + (h.cost_volume || h.volume), 0);
|
||||||
|
|||||||
Reference in New Issue
Block a user