This chapter covers the core features and capabilities of Metric Calculator.
Follow this guide to get Metric Calculator up and running in your environment.
# Calculate all metrics for the latest period
python src/metric_calculator.py --data examples/sample_subscriptions.json
# Show last 6 periods with trends
python src/metric_calculator.py --data examples/sample_subscriptions.json --periods 6
# Include CAC (provide total acquisition spend)
python src/metric_calculator.py --data examples/sample_subscriptions.json --acquisition-cost 15000
# Export to JSON
python src/metric_calculator.py --data data.json --output metrics_report.jsonJSON or CSV with period-level subscription data:
[
{
"period": "2026-01",
"mrr": 42500,
"new_mrr": 5200,
"expansion_mrr": 1800,
"contraction_mrr": 400,
"churned_mrr": 1200,
"total_customers": 185,
"new_customers": 32,
"churned_customers": 4,
"revenue": 42500
}
]Get the full Metric Calculator and unlock everything.
Get the complete guide with every chapter unlocked, including code samples, diagrams, and best practices.
Access all interactive tools with complete data, all workload profiles, and the full scenario library.
Downloadable source code, configuration files, and working examples from every chapter.
Free updates for life. Every new chapter, tool, and improvement included.