fin/modelling

MODELLING

Financial modelling AI expert.

production Any — outputs Excel, JSON, Markdown
requires: fin/reporting
improves: fin

Financial Modelling AI

Financial modelling is one of the highest-leverage AI pairings in finance. The human brings domain judgement — industry knowledge, deal context, capital structure preferences. The AI brings speed, consistency, and tireless number-crunching. Together they produce models that are faster, better-documented, and easier to audit.

This skill covers the full financial modelling workflow: three-statement models, DCF valuation, scenario analysis, sensitivity tables, and model export.

Key Capabilities

Three-Statement Model

The three statements are fully linked: retained earnings flow from net income, working capital movements derive from DSO/DPO assumptions, and closing cash derives from the cash flow statement. Any out-of-balance condition is flagged immediately with the offending line identified.

{
  "model": "three_statement",
  "period": "FY2026",
  "assumptions": {
    "revenue_growth": 0.18,
    "gross_margin": 0.72,
    "opex_pct_revenue": 0.45,
    "capex_pct_revenue": 0.08,
    "tax_rate": 0.28,
    "days_receivable": 45,
    "days_payable": 30,
    "days_inventory": 0
  },
  "income_statement": {
    "revenue": 12400000,
    "cogs": 3472000,
    "gross_profit": 8928000,
    "opex": 5580000,
    "ebitda": 3348000,
    "da": 420000,
    "ebit": 2928000,
    "interest": 180000,
    "ebt": 2748000,
    "tax": 769440,
    "net_income": 1978560
  }
}

Cash Flow Bridge

{
  "cash_flow_statement": {
    "period": "FY2026",
    "operating": {
      "net_income": 1978560,
      "add_back_da": 420000,
      "change_in_receivables": -167671,
      "change_in_payables": 36164,
      "change_in_inventory": 0,
      "cfo": 2267053
    },
    "investing": {
      "capex": -992000,
      "cfi": -992000
    },
    "financing": {
      "debt_repayment": -180000,
      "cff": -180000
    },
    "net_change_in_cash": 1095053,
    "opening_cash": 800000,
    "closing_cash": 1895053
  }
}

DCF Valuation

async function buildDCF(model, params) {
  const { wacc, terminalGrowth, horizon } = params;

  // AI generates FCF projections from three-statement model
  const fcfProjections = await ai.project({
    model,
    years: horizon,
    sensitivity: 'conservative'
  });

  // Discount cash flows
  const pvFCF = fcfProjections.map((fcf, i) =>
    fcf / Math.pow(1 + wacc, i + 1)
  );

  // Terminal value (Gordon Growth Model)
  const tv = fcfProjections[horizon - 1] * (1 + terminalGrowth)
             / (wacc - terminalGrowth);
  const pvTV = tv / Math.pow(1 + wacc, horizon);

  return {
    enterpriseValue: pvFCF.reduce((a, b) => a + b, 0) + pvTV,
    terminalValuePct: (pvTV / (pvFCF.reduce((a, b) => a + b, 0) + pvTV)) * 100,
  };
}

WACC Components

ComponentSource / Method
Risk-Free Rate10-year government bond yield
Equity Risk PremiumDamodaran country ERP
BetaSector / levered beta
Cost of DebtMarginal rate x (1 - tax rate)
Capital StructureMarket value weights (equity / debt)

Scenario Analysis

The AI maintains scenario consistency — changing a revenue assumption in the bull case cascades working capital, tax, and capex automatically.

ScenarioRevenue GrowthMarginWACCEV/EBITDA
Bear-5%-300bps+150bps6.2x
Base+18%StableFlat9.1x
Bull+32%+200bps-50bps13.4x

Sensitivity Tables

Two-dimensional sensitivity tables show enterprise value across ranges of any two variables. Example: Enterprise Value vs WACC and Terminal Growth Rate (base case: WACC 10%, TGR 2.5%):

WACC \ TGR1.5%2.0%2.5%3.0%3.5%
8%48.2M52.1M56.8M62.4M69.9M
9%41.3M44.4M48.0M52.3M57.8M
10%35.6M38.1M40.9M44.2M48.2M
11%30.9M32.9M35.2M37.8M41.0M
12%27.1M28.7M30.5M32.6M35.2M

Agent Workflow Example

Human: Build a DCF for a SaaS company with $12.4M ARR, 72% gross margin,
       growing at 18% YoY. Use WACC of 10% and 2.5% terminal growth.

AI:    Three-statement model built. Net income FY2026: $1.98M.
       FCF projection: $2.1M, $2.5M, $3.0M, $3.6M, $4.3M over 5 years.
       Enterprise value: $40.9M at base case.
       Terminal value is 68% of EV — typical for high-growth SaaS.
       Implied EV/ARR: 3.3x.

MCP Tools

ToolDescription
build_three_statementGenerate P&L, BS, CF from assumptions JSON
compute_dcfWACC, FCF projections, terminal value, EV
run_scenarioApply named scenario to model and recompute
build_sensitivity_table2D sensitivity for any two variables
compute_waccBuild WACC from capital structure inputs
export_excelExport model to .xlsx with formula cells
export_jsonStructured model output for downstream APIs
audit_modelFlag circular references, hardcoded values, assumption gaps
compare_versionsDiff two model versions and summarise changes
generate_board_packProduce executive summary with key metrics and charts

Common Gotchas

See Also