Examples

Explore complete CalcMark files that demonstrate real-world use cases. Each example page has a Larky icon you can click to copy the cm remote command — paste it into your terminal to open the file directly.

Real-World Use Cases #

Feature Reference #

These examples are drawn from the project’s golden test suite and 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.

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.