Executive Briefing
Mathematical Formulation
Where:
- Numerator: Revenue - Cost
- Denominator: Revenue
- Scale: ×100
Evidence & Lineage
def calculate_gross_margin_pct(revenue, cost):
# CONFLICT: business formula specifies (Revenue - Cost) / Revenue * 100
# but implementation divides revenue by cost instead — operator conflict
if cost == 0:
return 0.0
return (revenue / cost) * 100
Inline evidence snippet
1 | def calculate_gross_margin_pct(revenue, cost): 2 | # CONFLICT: business formula specifies (Revenue - Cost) / Revenue * 100 3 | # but implementation divides revenue by cost instead — operator conflict 4 | if cost == 0: 5 | return 0.0
- First, LEAP certifies the KPI definition against conflict_formula_margin.py and classifies the implementation as PYTHON evidence.
- Second, it presents the certified calculation expression (Gross Margin % = (Revenue - Cost) / Revenue * 100) in the formal MathJax formula shown above.
- Finally, it preserves the executable context and code fingerprint so future changes to the KPI logic can be identified.
CFO Dashboard, Quarterly Financial Review
Revenue, Cost of Goods Sold
Percentage of revenue retained after direct production costs.
Track financial health and pricing efficiency across product lines.
Compliance mode preserved only implementation-grounded evidence; unresolved business context is routed to owner confirmation.