Examples
Each example page has a Larky icon you can click to open the file directly in Lark, or copy the cm remote command to your terminal.
Tutorials #
Step-by-step walkthroughs that teach CalcMark through a specific domain.
- System Sizing & Capacity Planning – Server fleets, bandwidth, storage, and SLA budgets
- Business Planning & Financial Modeling – P&L statements, budgets, and projections
- Recipe Scaling & Cooking – Fractions, measurement conventions, and the
scaledirective - Unit Conversion & Measurement – Ambiguous units, inline qualifiers, and unit systems
Worked Examples #
Complete .cm files you can run, modify, and learn from.
- Markdown Showcase – Headings, lists, quotes, links, tables, and live calculations
- Household Budget – Monthly budget with rates, conversions, and napkin math
- Job Offer Comparison – Comparing compensation packages
- Project Workback – Sprint planning with dates and durations
- Recipe Scaling – Unit conversions and proportional scaling
- System Sizing – Infrastructure capacity planning
- Datacenter Build Cost – Full lifecycle cost analysis with growth, depreciation, and exchange rates
- Investment & Growth – Compound growth, depreciation, and linear growth for financial modeling
- Home Renovation – Averages, square roots, constants, booleans, and rate conversions
- Services P&L – Post-sales consulting P&L with percentage widening, globals, and scenario analysis
- Embedded Datacenter Cost – Embedded mode: CalcMark blocks inside a standard Markdown file
Feature Reference #
Drawn from the project’s golden test suite, these pages demonstrate every language feature:
- Functions & Natural Language – All function call styles
- Network & Storage – Latency, throughput, read/seek, compression
- Rates & Capacity Planning – Rate expressions,
over,at...per - Napkin Math – Quick estimation with
as napkin - Dates & Durations – Date keywords, literals, arithmetic
Markdown Showcase
A complete Markdown document with headings, lists, quotes, links, tables, and live calculations.
Functions & Natural Language
All function call styles: traditional, natural language, nested, and mixed.
Household Budget
Monthly budget with income, taxes, expenses, savings goals, and the 50/30/20 rule.
Job Offer Comparison
Compare two job offers with salary, equity, bonuses, and risk-adjusted analysis.
Network & Storage
Latency, throughput, transfer time, read/seek, and compression functions.
Rates & Capacity Planning
Rate expressions, accumulation with 'over', rate conversion, and capacity planning with 'at...per'.
Recipe Scaling
Double a banana bread recipe and convert imperial to metric — with two lines of frontmatter.
Napkin Math
Quick estimation with human-readable rounding using 'as napkin'.
Project Workback
Work backwards from a launch date with date arithmetic, sprint planning, and cost estimates.
Dates & Durations
Date keywords, literals, arithmetic, and duration calculations.
System Sizing
Back-of-napkin infrastructure estimation for a 10M user app with storage, bandwidth, and capacity planning.
Datacenter Build Cost
Full lifecycle cost analysis: CapEx, OpEx, depreciation, growth, and build-vs-colo comparison.
Fiscal Quarter Planning
Budget allocation across fiscal quarters with FQ/FY notation, leap year impact, and daily run rates.
Investment & Growth
Compound growth, depreciation, and linear growth for financial and business modeling.
Home Renovation
Kitchen remodel and patio budget using averages, square roots, constants, booleans, and rate conversions.
Services P&L
Post-sales consulting P&L model: headcount, utilization, engagement mix, scenarios, and board narratives.
Embedded Datacenter Cost
CalcMark's embedded mode: live calculations inside a standard Markdown file, designed for Hugo and static-site pipelines.