Write the business in Python. boki books the double entries, solves circularity explicitly, verifies every check, and compiles a live-formula workbook analysts can audit cell by cell — built for engineers and AI agents.
| Widget Co – Income Statement | |||||
| ($ in millions) | |||||
| FY2027E | FY2028E | FY2029E | FY2030E | FY2031E | |
| Revenue | 40.0 | 50.0 | 62.5 | 78.1 | 97.7 |
| % growth | 25.0% | 25.0% | 25.0% | 25.0% | |
| Cost of revenue | (18.0) | (22.5) | (28.1) | (35.2) | (43.9) |
| Gross profit | 22.0 | 27.5 | 34.4 | 43.0 | 53.7 |
| % margin | 55.0% | 55.0% | 55.0% | 55.0% | 55.0% |
| Operating expenses | (12.0) | (13.5) | (15.4) | (17.7) | (20.6) |
| Plant depreciation | – | (3.0) | (3.0) | (3.0) | (3.0) |
| Total operating expenses | (12.0) | (16.5) | (18.4) | (20.7) | (23.6) |
| Operating income (EBIT) | 10.0 | 11.0 | 16.0 | 22.3 | 30.1 |
| % margin | 25.0% | 22.0% | 25.6% | 28.5% | 30.8% |
| Interest expense | – | (1.8) | (1.4) | (1.1) | (0.7) |
| Pre-tax income | 10.0 | 9.3 | 14.6 | 21.2 | 29.4 |
| % margin | 25.0% | 18.5% | 23.4% | 27.1% | 30.1% |
| Income taxes | (2.1) | (1.9) | (3.1) | (4.5) | (6.2) |
| % effective tax rate | 21.0% | 21.0% | 21.0% | 21.0% | 21.0% |
| Net income | 7.9 | 7.3 | 11.5 | 16.7 | 23.2 |
| % margin | 19.8% | 14.6% | 18.5% | 21.4% | 23.8% |
Not toy templates. boki builds full historical-to-forecast 3-statement models, multi-tranche LBO debt waterfalls, and WACC/UFCF DCF valuations — with live =INDEX scenario switchers, proof-carrying formula rewrites, and 2D sensitivity matrices whose axis headers recalculate directly inside Excel. Click any cell below to inspect the real formula boki emits.
| Apex Precision LBO – Returns | ||
| ($ in millions) · Exit Valuation & Sponsor Returns | ||
| FY2029E Exit Bridge | $mm | Metric |
| FY2029E EBITDA | 183.0 | |
| Exit EV / EBITDA Multiple | 9.0x | |
| Implied Exit Enterprise Value | 1,647.4 | 9.0x |
| Less: FY2029E Ending Total Debt | (224.2) | (1.2x) |
| Plus: FY2029E Ending Cash | 25.0 | 0.1x |
| Implied Exit Sponsor Equity | 1,448.1 | |
| Initial Sponsor Equity Invested | 397.5 | |
| Sponsor MoIC | 3.6x | |
| Sponsor IRR (5-Year Hold) | 29.5% | |
| Sensitivity: Sponsor IRR (Entry × Exit Multiple) | |||||
| Live axis headers ($A31:$A35, C$30:G$30) — edit any multiple in Excel to recalculate | |||||
| Entry \ Exit | Exit 8.0x | Exit 8.5x | Exit 9.0x | Exit 9.5x | Exit 10.0x |
| Entry 8.0x | 33.8% | 35.7% | 37.5% | 39.2% | 40.8% |
| Entry 8.5x | 29.6% | 31.4% | 33.1% | 34.8% | 36.3% |
| Entry 9.0x | 26.1% | 27.8% | 29.5% | 31.1% | 32.6% |
| Entry 9.5x | 23.0% | 24.8% | 26.4% | 28.0% | 29.4% |
| Entry 10.0x | 20.4% | 22.1% | 23.7% | 25.2% | 26.7% |
| Veridian MedTech DCF – Summary | ||
| ($ in millions) · FY2024A Valuation Date | ||
| Valuation Bridge | Perpetuity Growth | Exit Multiple |
| PV of Explicit UFCF (FY25E–FY29E) | 1,039.9 | 1,039.9 |
| PV of Terminal Value | 3,297.8 | 4,576.1 |
| Implied Enterprise Value ($mm) | 4,337.7 | 5,616.0 |
| Terminal Value % of EV | 76.0% | 81.5% |
| Less: Valuation Date Total Debt | (420.0) | (420.0) |
| Plus: Valuation Date Cash | 240.0 | 240.0 |
| Implied Equity Value ($mm) | 4,157.7 | 5,436.0 |
| Implied Share Price ($) | $83.15 | $108.72 |
| Implied Upside / (Downside) | 22.3% | 59.9% |
| Cross-Check: Implied Multiple / g | 9.7x | 4.7% |
| Sensitivity: Implied Share Price — WACC vs. g (PGM) | |||||
| Row headers link live to CAPM WACC (=DCF!$C$33 ± 50 bps) | |||||
| WACC \ g | g = 2.0% | g = 2.5% | g = 3.0% | g = 3.5% | g = 4.0% |
| WACC 8.2% | $86.07 | $92.44 | $100.04 | $109.25 | $120.67 |
| WACC 8.7% | $79.28 | $84.60 | $90.85 | $98.31 | $107.36 |
| WACC 9.2% | $73.43 | $77.93 | $83.15 | $89.29 | $96.62 |
| WACC 9.7% | $68.36 | $72.20 | $76.61 | $81.74 | $87.77 |
| WACC 10.2% | $63.90 | $67.22 | $70.99 | $75.32 | $80.36 |
| Acme Industrial Corp. – Financial Highlights & Credit Profile | ||||||||
| ($ in millions) · Historical Actuals (2022A–2024A) | Explicit Forecast (2025E–2029E) | ||||||||
| Financial Highlights | FY2022A | FY2023A | FY2024A | FY2025E | FY2026E | FY2027E | FY2028E | FY2029E |
| Revenue | 400.0 | 440.0 | 485.0 | 523.8 | 565.7 | 611.0 | 659.8 | 712.6 |
| % growth | – | 10.0% | 10.2% | 8.0% | 8.0% | 8.0% | 8.0% | 8.0% |
| Gross profit | 168.0 | 187.0 | 208.5 | 225.2 | 243.3 | 262.7 | 283.7 | 306.4 |
| EBITDA | 74.0 | 85.0 | 97.0 | 104.8 | 113.1 | 122.2 | 132.0 | 142.5 |
| Net income | 31.9 | 39.9 | 48.8 | 55.6 | 62.1 | 68.9 | 76.2 | 83.9 |
| Free cash flow (FCF) | – | – | – | 42.8 | 47.0 | 51.9 | 57.1 | 62.7 |
| Net debt | 135.0 | 119.8 | 98.7 | 69.8 | 38.3 | 3.7 | (34.4) | (76.0) |
Spreadsheet models cannot be diffed, tested or reviewed, and their hardest parts — circular references, macro-pasted values, broken links — are the least visible. boki keeps the model in Python and compiles a workbook you can trust.
Every assumption lives once on Inputs in blue, flows cleanly through statement formulas in black, and ties out automatically on Checks. No hardcoded overrides, no pasted macro outputs.
Writing spreadsheets directly via cell coordinates is brittle for humans and catastrophic for LLMs. With boki, an agent writes concise Python and gets immediate, actionable diagnostics whenever accounting or units break.
b.block(..., verify="perturb") checks Base, every scenario, and random input perturbations before emitting concise banker =SUM(...) formulas.pytest in CI, and pin board-approved numbers with b.expect.Write revenue, payment terms, fixed assets and loans. boki books the double entries, depreciation, interest and indirect cash flow.
co.pl.revenue("Sales", 120 * USD, settle=b.delay(1)) co.bs.fixed_asset("Oven", 60 * USD, at=0, life=3 * year) print(m.render().cf(co, method="indirect"))
Debt sculpting, interest during construction and goal seeks are solved explicitly with m.solve. Unintended loops stop immediately.
debt = m.unknown("Debt", unit=USD.dims) idc = m.series("IDC", 0.08 * debt) m.solve(debt, debt == 1_000 * USD + idc) # 1,086.96
Emit clean banker subtotals without sacrificing auditability — boki proves your Excel override equals the ledger before writing.
b.block(co.cf.operating, [
co.pl.net_income, depreciation, change_in_nwc,
], label="Cash flow from operations", verify="perturb")
Stamp out one model per site or vintage, sweep scenarios in a loop, and fail CI if a change moves signed-off numbers.
b.expect(m.render(), {
co.pl.net_income: [7.9e6, 7.3e6, 11.5e6, 16.7e6, 23.2e6]
}, rel=0.01)
boki was built by rewriting published analyst, university, and government spreadsheets line by line and comparing every output cell against the original workbook — uncovering 102 silent inconsistencies in the source files along the way.
Need the same underlying business in US GAAP, IFRS, or J-GAAP — or formatted for a banker deck versus an SEC 10-K? Swap the standard or style preset without rewriting a single line of business logic.
b.styles.bankerCurrent-first balance sheet, parentheses for expenses, blue/black/green color coding, and automatic % growth & margin rows.
| Income Statement ($mm) | FY27E | FY28E |
| Revenue | 40.0 | 50.0 |
| Cost of revenue | (18.0) | (22.5) |
| Net income | 7.9 | 7.3 |
b.styles.secStatement of Profit or Loss and non-current-first Statement of Financial Position, Times New Roman, monochrome filing format.
| Consolidated P&L ($mm) | 2027 | 2028 |
| Revenue | $40.0 | $50.0 |
| Cost of sales | (18.0) | (22.5) |
| Profit for the year | $7.9 | $7.3 |
b.styles.japaneseOrdinary income (経常利益), goodwill amortization in consolidated books, positive expenses subtracted, and △ negative marks.
| 損益計算書 (百万円) | 2027 | 2028 |
| 売上高 | 4,000 | 5,000 |
| 売上原価 | 1,800 | 2,250 |
| 当期純利益 | 790 | 731 |
boki[excel] (zero required dependencies for core Python modeling)..xlsx workbook.$ uv add "boki[excel]" $ python examples/ib_lbo/plan.py out/ $ open out/apex_lbo.xlsx Inputs · Transaction · Debt · IS · BS · CF Returns (Exit Bridge + Live 2D Sensitivities) · Checks
Build a complete three-statement model end to end: entity, ledger, scenario, and live Excel export.
Models and series, units and rates, double-entry statements, consolidation, checks, and IB Excel layout.
Every public function, class and line maker with parameters, units, errors, and doctested examples.