CFDL

Every example on this page is a complete model that runs. They come in three kinds: eight short lessons that build the language one construct at a time, a few longer domain models, and twenty-five benchmark models checked against published references.

Lessons

Read in order. Each adds one construct to the model before it.

Domain models

Longer models that put the constructs together.

  • CRE examples — lease-up, developer lifecycle, phased development, multi-file, development with financing.
  • Operating business examples — revenue, opex, working capital, exit multiple, growth, multi-file.

Benchmark models

Complete models for every pack, each checked period by period against an independent reference implementation. These detailed examples have been verified. How that is done is on the validation page.

Energy

Commercial real estate

  • CRE: a stabilized acquisition and a terminal cap rate — A stabilized commercial property bought on a going-in cap rate, held ten years with fully reimbursed expenses, and sold by capping the final year's net operating income.
  • CRE: HOME-funded affordable multifamily — A 29-year affordable multifamily underwriting from HUD's HOME Multifamily template, with restricted rents reverting to market at year 15 and a first mortgage, stated from its sizing terms, that stops paying before the hold ends.
  • CRE: rent-regulated plaza — A five-year office acquisition and disposition from MIT's real estate finance course, valued on a levered before-tax cash flow with an exit at a stated cap rate.
  • CRE: a renewal option on a lease — The two-tenant office DCF with Tenant A's expiry as a renewal option on the lease: exercised at expiry when the market rent exceeds the option rent, and a re-let at market when it does not.
  • CRE: two-tenant office — An institutional two-tenant office DCF: free rent, anniversary escalations, recoveries above expense stops, tenant improvements and leasing commissions, probability-blended rollover, and a forward-NOI exit over ten years.
  • CRE: office development joint venture — A ground-up office development drawing on a construction facility, capitalizing interest through the build, then stabilizing and refinancing.
  • CRE: office development, through the pack contract — The same published construction schedule as the native case, declared as one cre.construction_loan contract — equity first, the facility behind it, interest on the drawn balance.
  • CRE: retail strip with expense stops — A retail strip center with base-year expense gross-ups, percentage rent over a breakpoint, and staggered tenant rollover across a ten-year hold.

Credit

Operating businesses

Without a pack

  • Bespoke: open-pit copper mine — A 41-year open-pit copper mine whose production plan is derived from its reserve statement, with the pit's strip ratio drawn from a distribution and the valuation reported as a range.
  • Bespoke: tolled highway PPP concession — A 125 km toll highway concession from the World Bank's highway PPP toolkit, financed with three debt tranches and topped up each year by an availability subsidy sized to hold debt service cover at 1.30x.