Domain Recipes

These tutorials teach CalcMark through real-world scenarios. Each one walks through a domain-specific problem, introduces the relevant language features along the way, and ends with a complete worked example.

New to CalcMark? Start with Getting Started for installation and core concepts, then come back here.

Want to try without installing? Open the CalcMark Lark playground in your browser and paste any example.

System Sizing & Capacity Planning #

Model server fleets, bandwidth requirements, storage capacity, and SLA budgets. Uses rates, at...per capacity syntax, and napkin math.

Business Planning & Financial Modeling #

Build P&L statements, budgets, and financial projections. Uses currency arithmetic, number() for ratios, sum of, and template interpolation.

Thinking in CalcMark #

Transition from calculator thinking to idiomatic CalcMark — sum of, percentage operators, rates with over, and growth functions like compound and depreciate.

Understanding Measurements #

Learn how CalcMark handles quantities, unit conversions, fractions, and napkin math — and how each affects your data in the editor and JSON output.

Recipe Scaling & Cooking #

Scale recipes with fractions, measurement conventions (US vs Imperial), and the scale directive. Uses measurement: frontmatter for UK/US unit handling.

Unit Conversion & Measurement #

Convert between unit systems, handle ambiguous units (US gallon vs Imperial gallon, standard ounce vs troy ounce), and use inline qualifiers.