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.

Worked Examples #

Complete .cm files you can run, modify, and learn from.

Feature Reference #

Drawn from the project’s golden test suite, these pages demonstrate every language feature:

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.