Underwrite a 240-unit apartment deal by Friday's investment committee
A 240-unit rent roll, T-12, comps and loan terms into a monthly underwriting model with levered and unlevered XIRR for three cases, an exit-cap by rent-growth sensitivity, and a seven-slide IC deck, in just over five minutes. Sources equal uses at $51.07M.
- Who
- A multifamily acquisitions team's LangGraph agent, on OpenAI gpt-6.1-sol
- Runs in
- LangGraph
- Hands over
- .pptxAlder_Cedar_Park_IC.pptx.xlsxAlder_Cedar_Park_Underwriting.xlsx
The ask
Underwrite The Alder at Cedar Park for Friday's IC. The broker's rent roll and T-12, the rent comps, the lender's terms and my deal summary are in this folder. I need the model (rent roll, monthly pro forma, debt, levered and unlevered returns with XIRR, an exit cap by rent growth sensitivity, sources and uses, Base/Upside/Downside) and the seven-slide IC deck. Sources must equal uses and the rent roll must have all 240 units. Coast theme.
The broker's rent roll and T-12 arrive on Tuesday and the investment committee is Friday. In between, the analyst keys 240 units into a template, rebuilds the pro forma, reruns the sensitivity and copies it all into slides.
The Alder is 240 units in Cedar Park, Texas, asking $48.6M, with a $1.44M renovation plan, a five-year hold and a 12% levered hurdle.
This run is a LangGraph agent, built the way the docs show with artiwright's Python package, on OpenAI's gpt-6.1-sol. It gets the request, the paths of the files and the notes, and nothing else.
What they handed over
Made-up data in the shape of a real export. Download it and try the ask yourself.
What came out
Screenshots exported by PowerPoint and Excel.
What the agent noticed
The first build's status check came to 11, not zero: it missed the 11 units on notice, which also left the roll showing 10.4% vacancy and 3.7% loss to lease. The agent counted 215 occupied, 11 notice and 14 vacant, treated notice units as occupied, and started vacancy at the roll's 5.83%, reaching each case's target over 12 months. Loss to lease became 8.5%, and Base levered XIRR moved from 14.7% to 14.5%.
Selling in year 5 falls inside the ten-year loan's yield maintenance, and the lender hadn't quoted it. The agent left it at zero, flagged it as unresolved in Checks, and showed an illustrative $1M fee taking Base from 14.5% to 13.9%. The deck asks the IC to proceed only on conditions, a lender prepayment quote among them.
Base clears 12% at 14.5%, but 2% rent growth takes it to 10.5%, and an exit cap 50 bp above Base takes it to 11.3%. The renovated rents it rests on, market plus the $85 premium, are above the comps' asking rents in every floor plan, so the deck asks for signed renovated leases before relying on them.
Build it yourself
Underwrite The Alder at Cedar Park for Friday's IC. The broker's rent roll and T-12, the rent comps, the lender's terms and my deal summary are in this folder. I need the model (rent roll, monthly pro forma, debt, levered and unlevered returns with XIRR, an exit cap by rent growth sensitivity, sources and uses, Base/Upside/Downside) and the seven-slide IC deck. Sources must equal uses and the rent roll must have all 240 units. Coast theme.from langchain_openai import ChatOpenAI
from langgraph.prebuilt import create_react_agent
from artiwright.langgraph import agent_tools, compact_messages, get_tools, skill_text
tools = agent_tools(await get_tools(root="./deals", session=thread_id))
model = ChatOpenAI(model="gpt-6.1-sol", use_responses_api=True)
agent = create_react_agent(model, tools, prompt=skill_text("spreadsheets") + skill_text("presentations"),
pre_model_hook=compact_messages)
await agent.ainvoke({"messages": [("user", request_with_attached_paths)]})Set Artiwright up in your app first: Quickstart for AI apps, Google ADK, LangGraph, Node.js.
Inside the workbook
18 sheets, laid out by the agent. In its words, sheet by sheet:
Rent CompsThe 18 asking rents from six nearby properties, imported as a table.
Rent RollAll 240 units from the broker's rent roll, as a table: 215 occupied, 11 on notice, 14 vacant.
T12The trailing twelve months, October 2025 to September 2026, with a total for each line.
InputsEvery deal and loan term as a named input with its source, the assumptions marked ASSUMED (a November 15 close, straight-line renovations, a 12-month path to case vacancy, a $1M illustrative exit fee), and the Base / Upside / Downside table: rent growth, vacancy, expense growth and exit spread.
Show all 16 sheets
Roll SummaryUnits, rents and comp asking rents by floor plan, and the roll's metrics: 226 units occupied counting notice, 8.5% loss to lease, 5.83% physical vacancy, $2.54M of T12 NOI and a 5.24% going-in cap.
Sources Uses$51.07M of sources and uses: the $30.38M loan and $20.70M of equity pay the $48.6M price, $729K of closing costs, the $1.44M renovation escrow and the $304K origination fee. Sources less uses is zero.
DebtThe loan month by month for 60 months: 5.35% fixed, 24 months interest-only, then 30-year amortization, with $29.04M left to repay at month 60.
- Base, Upside, Downside
A 72-month pro forma for each case, the last 12 months giving the exit NOI: rent with the renovation premium, loss to lease burning off to 2%, vacancy, expenses with the tax reassessment, reserves and debt service, then annual NOI and DSCR.
ReturnsExit value, sale costs and loan payoff, then levered and unlevered XIRR, multiples, NPV at 8%, minimum DSCR and the spread to the 12% hurdle for each case, and the levered XIRR with a $1M exit fee.
Cash FlowsThe dated cash flows behind each XIRR, close plus 60 months, levered and unlevered for each case and with the exit fee.
SensitivityLevered XIRR across five exit caps from 5.24% to 6.24% and rent growth from 1% to 5%, 25 cells. The center cell ties to Base.
Sensitivity CalcThe Base pro forma rerun at each of the five rent growth rates, 360 rows.
Sensitivity CFThe 25 rows of dated cash flows behind the grid, each with its own XIRR.
ChecksTen controls, all zero: sources less uses, 240 units, no duplicate IDs, no missing rents, every status counted, the debt roll-forward, the sensitivity center, renovations done by month 30, the cash flow count and the debt service tie. An eleventh row reads 1 on purpose, flagging the unquoted yield maintenance for diligence.
IC SummaryThe three cases side by side, annual NOI by case with a native line chart, and the decision limits.
IC DataThe case metrics the deck quotes, linked to Returns.
How it got thereSee all 22 calls the agent made, what lint found and the finalize report
The run
One real session in LangGraph (gpt-6.1-sol), with only Artiwright's tools and the paths of the files above. Nothing below is edited: every call the agent made, what came back, and the renders it looked at.
artiwright_help{ "query": "skill spreadsheets", "search": "", "maxChars": 18000 }--- name: artiwright-spreadsheets description: Build native Excel workbooks (.xlsx) with Artiwright - live formulas that compute as you write them, tables, number formats, conditional formats, data validation and native charts, then render, lint and publish a checked file. Use when a user asks for a spreadsheet, workbook, financial or operating model, budget, tracker, dashboard or data "as Excel". --- # Artiwright spreadsheets You build workbooks as code against a live document. Formulas compute as you write them, so you can read results back, check them, and look at the sheet as an image before you publish. Everything you make stays native and editable in Excel: real formulas (not pasted values), tables, number formats, conditional formats, validation dropdowns and charts linked to the cells. ## The loop 1. **Plan the sheets.** Inputs (assumptions the user can change) → calculations → outputs (summary, charts). Decide the rows, columns and units before writing. Never invent numbers: ask, or label an assumption clearly as one. 2. **Build** a sheet or a whole section per call: values, then formulas, then formats. 3. **Look.** Render each sheet (`artiwright_render`) and read key results back (`return` a range, or `artiwright_inspect` with kind `formula`). 4. **Check** with lint: formula errors, cycles, `####` columns, numbers stored as text, typed-in numbers in formulas. Fix everything in one call, then look again. 5. **Publish** with finalize, stating requirements: the sheets, tables and charts that must exist and key cells with the values they must hold (`{ cell: "Checks!B2", equals: 0 }`). ## Work in few calls Every call resends the whole conversation, so a workbook made in 4 calls costs a fraction of one made in 25. When the user gives the data, this is usually enough: 1. **One `artiwright_run` that builds every sheet**: rename `Sheet1`, write inputs, formulas, formats, tables, rules and charts, and `return` the key result cells to read them back. 2. **`artiwright_lint`**. If it reports problems, fix them all in **one** run. 3. **`artiwright_finalize`** with requirements (sheets, tables, charts, key cell values). - Don't probe the API with small runs: the calls on this page are enough. Use `help` only for something it doesn't show (`help("range.format")`, `help("functions")`). - One formula fills a range adjusted per row: `sheet …I’ll reconcile the rent roll and T-12, build the three-case model, and prepare a seven-slide Coast-theme IC deck. I’ll flag assumptions and unresolved items explicitly, including the yield-maintenance exposure on a five-year exit.
artiwright_importrent_roll.csv{ "session": "multifamily-underwriting", "document": "model", "path": "./work/rent_roll.csv", "content": "", "sheet": "Rent Roll", "at": "A1", "replace": false, "table": "RentRoll", "dates": "mdy", "theme": "coast" }{ "ok": true, "value": { "sheet": "Rent Roll", "range": "A1:H241", "rows": 240, "columns": [ "Unit", "Floor plan", "Sq ft", "Market rent", "In-place rent", "Lease start", "Lease end", "Status" ], "firstRows": [ [ "1-101", "1BR", 760, 1520, 1380, 46095, 46459, "occupied" ], [ "1-102", "2BR", 1130, 1895, 1640, 46108, 46472, "occupied" ], [ "1-103", "1BR", 685, 1425, 1335, 46204, 46568, "occupied" ] ], "table": "RentRoll" }, "logs": [], "created": [], "removed": [], "slides": 0, "sheets": [ "Rent Comps", "Rent Roll" ], "version": 2, "lint": { "errors": 0, "warnings": 0 }, "next": "Use the table in formulas, e.g. =SUM(RentRoll[column]); import the next file the same way." }artiwright_importt12.csverror{ "session": "multifamily-underwriting", "document": "model", "path": "./work/t12.csv", "content": "", "sheet": "T12", "at": "A1", "replace": false, "table": "T12", "dates": "mdy", "theme": "coast" }{ "ok": false, "error": { "name": "ArtiwrightError", "message": "tables.add: \"T12\" can't be a table name (letters, digits, _ and . only; no spaces; not a cell address)." }, "logs": [], "created": [], "removed": [], "slides": 0, "sheets": [ "Rent Comps" ], "version": 1, "lint": { "errors": 0, "warnings": 0 } }artiwright_importrent_comps.csv{ "session": "multifamily-underwriting", "document": "model", "path": "./work/rent_comps.csv", "content": "", "sheet": "Rent Comps", "at": "A1", "replace": false, "table": "RentComps", "dates": "mdy", "theme": "coast" }{ "ok": true, "value": { "sheet": "Rent Comps", "range": "A1:F19", "rows": 18, "columns": [ "Property", "Year built", "Distance (mi)", "Floor plan", "Sq ft", "Asking rent" ], "firstRows": [ [ "Brushy Creek Commons", 2019, 1.4, "1BR", 790, 1655 ], [ "Brushy Creek Commons", 2019, 1.4, "2BR", 1100, 1865 ], [ "Brushy Creek Commons", 2019, 1.4, "3BR", 1220, 2175 ] ], "table": "RentComps" }, "logs": [], "created": [], "removed": [], "slides": 0, "sheets": [ "Rent Comps" ], "version": 1, "lint": { "errors": 0, "warnings": 0 }, "next": "Use the table in formulas, e.g. =SUM(RentComps[column]); import the next file the same way." }artiwright_importt12.csv{ "session": "multifamily-underwriting", "document": "model", "path": "./work/t12.csv", "content": "", "sheet": "T12", "at": "A1", "replace": false, "table": "TrailingOps", "dates": "mdy", "theme": "coast" }{ "ok": true, "value": { "sheet": "T12", "range": "A1:N20", "rows": 19, "columns": [ "Type", "Line", "Oct 2025", "Nov 2025", "Dec 2025", "Jan 2026", "Feb 2026", "Mar 2026", "Apr 2026", "May 2026", "Jun 2026", "Jul 2026", "Aug 2026", "Sep 2026" ], "firstRows": [ [ "Rental income", "Gross potential rent", 412164, 413297, 414429, 415561, 416694, 417826, 418958, 420091, 421223, 422355, 423488, 424620 ], [ "Rental income", "Loss to lease", -34131, -33719, -35152, -34640, -33085, -34351, -33594, -34867, -35772, -34540, -33879, -36117 ], [ "Rental income", "Vacancy loss", -30458, -26190, -25170, -28265, -30201, -29521, -23500, -28272, -32053, -24171, -29736, -24100 ] ], "table": "TrailingOps" }, "logs": [], "created": [], "removed": [], "slides": 0, "sheets": [ "Rent Comps", "Rent Roll", "T12" ], "version": 3, "lint": { "errors": 0, "warnings": 12 }, "next": "Use the table in formulas, e.g. =SUM(TrailingOps[column]); import the next file the same way." }artiwright_inspect{ "session": "multifamily-underwriting", "document": "model", "kind": "", "slide": "", "search": "", "target": "", "maxChars": 15000, "sheet": "T12", "range": "A1:N20" }{"kind":"workbook","sheets":["Rent Comps","Rent Roll","T12"],"active":"Rent Comps","names":0,"circular":[]} {"kind":"sheet","sheet":"T12","used":"A1:N20","tables":["TrailingOps"],"charts":0,"merges":[],"spills":[]} {"kind":"table","sheet":"T12","name":"TrailingOps","range":"A1:N20","columns":["Type","Line","Oct 2025","Nov 2025","Dec 2025","Jan 2026","Feb 2026","Mar 2026","Apr 2026","May 2026","Jun 2026","Jul 2026","Aug 2026","Sep 2026"],"totals":false} {"kind":"cells","sheet":"T12","range":"A1:N1","values":["Type","Line","Oct 2025","Nov 2025","Dec 2025","Jan 2026","Feb 2026","Mar 2026","Apr 2026","May 2026","Jun 2026","Jul 2026","Aug 2026","Sep 2026"]} {"kind":"cells","sheet":"T12","range":"A2:N2","values":["Rental income","Gross potential rent",412164,413297,414429,415561,416694,417826,418958,420091,421223,422355,423488,424620]} {"kind":"cells","sheet":"T12","range":"A3:N3","values":["Rental income","Loss to lease",-34131,-33719,-35152,-34640,-33085,-34351,-33594,-34867,-35772,-34540,-33879,-36117]} {"kind":"cells","sheet":"T12","range":"A4:N4","values":["Rental income","Vacancy loss",-30458,-26190,-25170,-28265,-30201,-29521,-23500,-28272,-32053,-24171,-29736,-24100]} {"kind":"cells","sheet":"T12","range":"A5:N5","values":["Rental income","Concessions",-5242,-4134,-4803,-8031,-6664,-3946,-4734,-8351,-6434,-8169,-5525,-6229]} {"kind":"cells","sheet":"T12","range":"A6:N6","values":["Rental income","Bad debt",-1927,-1975,-3692,-3829,-2634,-3995,-2512,-2832,-4311,-4720,-3527,-2494]} {"kind":"cells","sheet":"T12","range":"A7:N7","values":["Other income","Utility reimbursements",10181,10192,9930,10632,10657,10672,10953,9946,10972,10357,10971,10005]} {"kind":"cells","sheet":"T12","range":"A8:N8","values":["Other income","Parking and storage",2655,2608,2780,2841,2906,3050,2639,2960,3067,2739,2953,2690]} {"kind":"cells","sheet":"T12","range":"A9:N9","values":["Other income","Pet fees",3212,3393,2972,3497,3238,3450,3160,3247,3102,3258,3094,3338]} {"kind":"cells","sheet":"T12","range":"A10:N10","values":["Other income","Late fees and other",2313,2530,3080,2873,3292,3146,2505,2663,2314,2041,2875,2339]} {"kind":"cells","sheet":"T12","range":"A11:N11","values":["Operating expense","Payroll",29072,29310,27687,28451,29144,27760,29445,27857,28919,28899,27946,28326]} {"kind":"cells","sheet":"T12","range":"A12:N12","values":["Operating expense","Repairs and maintenance",8123 …artiwright_help{ "query": "skill presentations, guide workbook-charts", "search": "", "maxChars": 18000 }--- name: artiwright-presentations description: Build native, editable PowerPoint decks (.pptx) with Artiwright - plan the story, compose slides from layout recipes with real charts and tables, render and lint them, fix problems by anchor, and publish a checked file. Use when a user asks for a presentation, deck, slides, a QBR, a pitch, or a report "as PowerPoint". --- # Artiwright presentations You build decks as code against a live document, look at what you built, fix it, and publish a file that has been checked. Every object has an anchor (`sl_…` slides, `sh_…` shapes, `ch_…` charts, `tb_…` tables, `im_…` pictures) that stays the same across calls, so you can point at exactly what to change. ## The loop 1. **Plan.** Who is the audience and what should they conclude? Write one message per slide. A slide that reports a finding gets a headline sentence with the claim ("Enterprise drove 48% of new ARR", not "Revenue"); a slide that sets something up (agenda, process, method, team) gets a plain name for what it shows ("How a renewal is approved"). Gather the facts first (from the user, files or other agents); never invent numbers. A requested slide count is the total, title slide included. 2. **Build** each slide from a layout recipe (`references/recipes.md`), with native charts and tables. A recipe slide is a few lines of code and comes out aligned, readable and lint clean; boxes placed by hand take many times the code, and are where overlaps, small text and crowded slides come from. Place shapes yourself only for a slide no recipe fits. 3. **Look.** Render the slides (a contact sheet first, then single slides you doubt) and lint. 4. **Fix** by anchor, then look again. Repeat until lint has no errors. 5. **Review** as the audience will: the headlines alone, the copy on each slide (the `writing` guide), and the contact sheet for slides that look alike but say different kinds of things. Lint checks that slides are built right, not that they read well. Fix what you find. 6. **Publish** with finalize, stating requirements (slide count, which slides need native charts). Tell the user what the deck contains and anything you could not do. ## Decks from a workbook When the deck reports on a workbook in the same session, take every figure from the workbook. In one `artiwright_run` on the workbook, return the values the slides ne …artiwright_runerrorconst add=n=>workbook.sheets.add(n); const inp=add('Inputs'); const assumptions=[['PurchasePrice',48600000,'Purchase price ($)','Morgan deal summary'],['UnitCount',240,'Units','Deal summary; reconciled to raw roll'],['CloseDate',new Date('2026-11-15T12:00:00Z'),'Close date','ASSUMPTION: mid-November means November 15'],['HoldMonths',60,'Hold (months)','Five years'],['MonthsYear',12,'Months / year','Calendar convention'],['ClosingRate',0.015,'Closing costs (% price)','Deal summary'],['SaleRate',0.015,'Sale costs (% gross sale)','Deal summary'],['Renovation',1440000,'Renovation funded at close ($)','Deal summary; no second deduction on spend'],['Premium',85,'Renovation premium ($/unit/month)','Deal summary'],['RenovMonths',30,'Renovation completion (months)','ASSUMPTION: straight-line turns, full premium at month 30'],['LTLTarget',0.02,'Stabilized loss to lease','Deal summary'],['LTLMonths',18,'Loss-to-lease burn-off (months)','Deal summary; straight-line'],['MgmtRate',0.03,'Management fee (% EGI)','Deal summary'],['TaxRate',0.0172,'Reassessed property tax (% price)','Deal summary; grows with expenses thereafter'],['ReserveUnit',300,'Reserve ($/unit/year)','Deal summary; flat nominal, treated as spent'],['LTV',0.625,'Loan / purchase price','Harbor Point indicative terms 6 Oct 2026'],['LoanRate',0.0535,'Fixed loan rate','Harbor Point terms'],['AmortYears',30,'Amortization (years)','Harbor Point terms; starts after IO'],['IOMonths',24,'Interest-only (months)','Harbor Point terms'],['OrigRate',0.01,'Origination fee (% loan)','Harbor Point terms'],['MinDSCR',1.25,'Minimum annual trailing DSCR','Harbor Point terms; actual annual debt service'],['Hurdle',0.12,'Levered XIRR hurdle','Deal summary'],['DiscountRate',0.08,'XNPV discount rate','Deal summary'],['Prepay',0,'Exit prepayment fee ($)','UNRESOLVED: zero placeholder, not lender quote; returns before yield maintenance'],['PrepayStress',1000000,'Illustrative prepayment stress ($)','ASSUMPTION: $1m stress only, not an estimate or quote'],['LoanYears',10,'Loan term (years)','Harbor Point terms; five-year exit is not open'],['OpenMonths',6,'Open window (months before maturity)','Harbor Point terms'],['Zero',0,'Zero convention','Model constant'],['One',1,'One convention','Model constant'],['Cents',2,'Money check precision','Rounding convention']]; inp.range('A1:D1').values=[['THE ALDER AT CEDAR PARK','Value','Assumption / units','Source and treatment']]; assumptions.forEach((a,i)=>{const r=i+2;inp.range(`A${r}:D${r}`).values=[[a[0],a[1],a[2],a[3]]];workbook.names.add(a[0],`Inputs!$B$${r}`)}); inp.range('B2:B31').format({color:'blue-700',fill:'blue-50',numberFormat:'#,##0.00'});inp.range('B4').numberFormat='date';[7,8,12,14,15,17,18,21,23,24].forEach(r=>inp.range(`B${r}`).numberFormat='percent1'); inp.range('A34:F37').values=[['Case','Rent growth','Vacancy','Expense growth','Exit cap spread','Source'],['Base',0.03,0.055,0.03,0.005,'Morgan deal summary'],['Upside',0.04,0.045,0.0275,0.0025,'Morgan deal summary'],['Downside',0.02,0.07,0.035,0.0075,'Morgan deal summary']];inp.range('B35:E37').format({numberFormat:'0.00%',color:'blue-700',fill:'blue-50'});inp.tables.add('A34:F37',{name:'Cases'}); inp.range('A40:D45').values=[['MODELING CONVENTIONS','','',''],['Monthly timing','Month-end anniversary cash flows; no stub proration. Forward 12 months for exit NOI.','',''],['Operating assumptions','Other income grows with rents; T12 concessions and bad debt held as % of GPR.','',''],['Vacancy convention','Vacancy applied after loss to lease; premium also subject to LTL and vacancy.','',''],['Exit cap convention','Historical T12 NOI / price plus each case spread; not Year 1 cap.','',''],['Limits','No tax benefits, promote, working capital or reserve refunds. Validate lender DSCR definition and yield maintenance.','','']]; const t=workbook.sheets.get('T12');t.range('O1').values=[['T12 total']];t.range('O2:O20').formulas='=SUM(C2:N2)';t.range('C2:O20').numberFormat='#,##0;(#,##0)'; const rr=workbook.sheets.get('Rent Roll');rr.range('D2:E241').numberFormat='$#,##0';rr.range('F2:G241').numberFormat='date'; const roll=add('Roll Summary');roll.range('A1:H1').values=[['Floor plan','Units','Avg sqft','Market rent / unit','Occupied rent / unit','Comp asking / unit','Comp asking / sqft','Subject market + premium']];['1BR','2BR','3BR'].forEach((p,i)=>{const r=i+2;roll.range(`A${r}`).values=[[p]];roll.range(`B${r}:H${r}`).formulas=[[`=COUNTIF(RentRoll[Floor plan],A${r})`,`=AVERAGEIF(RentRoll[Floor plan],A${r},RentRoll[Sq ft])`,`=AVERAGEIF(RentRoll[Floor plan],A${r},RentRoll[Market rent])`,`=AVERAGEIFS(RentRoll[In-place rent],RentRoll[Floor plan],A${r},RentRoll[Status],"occupied")`,`=AVERAGEIF(RentComps[Floor plan],A${r},RentComps[Asking rent])`,`=SUMIF(RentComps[Floor plan],A${r},RentComps[Asking rent])/SUMIF(RentComps[Floor plan],A${r},RentComps[Sq ft])`,`=D${r}+Premium`]]}); roll.range('A7:B18').values=[['Rent roll metrics','Value'],['Raw units','=COUNTA(RentRoll[Unit])'],['Occupied units','=COUNTIF(RentRoll[Status],"occupied")'],['Market GPR / month','=SUM(RentRoll[Market rent])'],['In-place rent / month','=SUM(RentRoll[In-place rent])'],['Occupied market / month','=SUMIF(RentRoll[Status],"occupied",RentRoll[Market rent])'],['Occupied loss to lease','=One-B11/B12'],['Physical vacancy','=One-B9/B8'],['T12 gross potential','=T12!O2'],['T12 EGI','=SUM(T12!O2:O10)'],['T12 expenses','=SUM(T12!O11:O20)'],['T12 NOI','=B16-B17']]; workbook.names.add('MarketMonthly',"'Roll Summary'!$B$10").add('InitialLTL',"'Roll Summary'!$B$13").add('GoingCap',"'Roll Summary'!$B$20");roll.range('A20:B24').values=[['Going-in T12 cap',"=B18/PurchasePrice"],['Other income annually','=SUM(T12!O7:O10)'],['Concessions + bad debt / GPR','=-SUM(T12!O5:O6)/T12!O2'],['Controllable expenses + insurance','=SUM(T12!O11:O18)'],['Post-renovation avg market rent','=MarketMonthly/UnitCount+Premium']];roll.range('A26:H28').values=[['COMPS CAUTION','','','','','','',''],['Unadjusted asking rents, not achieved leases. No concessions, quality or vintage adjustments.','','','','','','',''],['Broker market rents and the $85 premium require floor-plan and effective-rent validation.','','','','','','','']]; roll.range('B13:B14').numberFormat='0.0%';roll.range('B20').numberFormat='0.00%';roll.range('B22').numberFormat='0.00%';roll.range('D2:F4').numberFormat='$#,##0';roll.range('H2:H4').numberFormat='$#,##0';roll.range('G2:G4').numberFormat='$0.00'; const su=add('Sources Uses');su.range('A1:C10').values=[['SOURCES AND USES','Amount ($)','Treatment'],['Purchase price','=PurchasePrice','Broker ask'],['Closing costs','=PurchasePrice*ClosingRate','Price based'],['Renovation escrow','=Renovation','All funded at close'],['Origination fee','=PurchasePrice*LTV*OrigRate','Debt fee'],['Total uses','=SUM(B2:B5)',''],['Debt proceeds','=PurchasePrice*LTV','No renovation financing'],['Required equity','=B6-B7','Equity funds all other uses'],['Total sources','=SUM(B7:B8)',''],['Sources less uses','=ROUND(B9-B6,Cents)','Must be zero']];su.range('A12:C14').values=[['Unlevered initial basis','=SUM(B2:B4)','Excludes financing fees'],['Prepayment placeholder','=Prepay','NOT QUOTED; exit fee deducted only at exit'],['Illustrative fee stress','=PrepayStress','Assumed stress, not lender estimate']];workbook.names.add('LoanAmount',"'Sources Uses'!$B$7").add('Equity',"'Sources Uses'!$B$8").add('UnlevBasis',"'Sources Uses'!$B$12");su.range('B2:B14').numberFormat='$#,##0;($#,##0)'; const debt=add('Debt');debt.range('A1:I1').values=[['Month','Date','Beginning balance','Interest','Payment','Principal','Ending balance','Trailing NOI (Base)','Annual DSCR (Base)']];for(let m=1;m<=60;m++){const r=m+1;debt.range(`A${r}`).values=[[m]];debt.range(`B${r}:G${r}`).formulas=[[`=EDATE(CloseDate,A${r})`,m===1?'=LoanAmount':`=G${r-1}`,`=C${r}*LoanRate/MonthsYear`,`=IF(A${r}<=IOMonths,D${r},-PMT(LoanRate/MonthsYear,AmortYears*MonthsYear,LoanAmount))`,`=E${r}-D${r}`,`=C${r}-F${r}`]];if(m%12===0){debt.range(`H${r}:I${r}`).formulas=[[`=SUM(Base!R${r-11}:R${r})`,`=H${r}/SUM(E${r-11}:E${r})`]]}}debt.range('B2:B61').numberFormat='date';debt.range('C2:H61').numberFormat='$#,##0';debt.range('I2:I61').numberFormat='0.00"x"'; for(const [idx,n] of ['Base','Upside','Downside'].entries()){const s=add(n);const cr=35+idx;s.range('A1:V1').values=[['Month','Date','Rent growth','Market GPR','Renovated units','Renovation premium','Gross potential','Loss to lease %','Loss to lease','Vacancy loss','Concessions / bad debt','Other income','EGI','Operating expenses','Property taxes','Management fee','Total expenses','NOI','Reserve','Unlevered operating CF','Debt service','Levered operating CF']];for(let m=1;m<=72;m++){const r=m+1;s.range(`A${r}`).values=[[m]];s.range(`B${r}:V${r}`).formulas=[[`=EDATE(CloseDate,A${r})`,`=Inputs!$B$${cr}`,`=MarketMonthly*(One+C${r})^(A${r}/MonthsYear)`,`=UnitCount*MIN(A${r}/RenovMonths,One)`,`=E${r}*Premium*(One+C${r})^(A${r}/MonthsYear)`,`=D${r}+F${r}`,`=InitialLTL+(LTLTarget-InitialLTL)*MIN(A${r}/LTLMonths,One)`,`=-G${r}*H${r}`,`=-(G${r}+I${r})*Inputs!$C$${cr}`,`=-G${r}*'Roll Summary'!$B$22`,`='Roll Summary'!$B$21/MonthsYear*(One+C${r})^(A${r}/MonthsYear)`,`=SUM(G${r},I${r}:L${r})`,`='Roll Summary'!$B$23/MonthsYear*(One+Inputs!$D$${cr})^(A${r}/MonthsYear)`,`=PurchasePrice*TaxRate/MonthsYear*(One+Inputs!$D$${cr})^(A${r}/MonthsYear)`,`=M${r}*MgmtRate`,`=SUM(N${r}:P${r})`,`=M${r}-Q${r}`,`=UnitCount*ReserveUnit/MonthsYear`,`=R${r}-S${r}`,m<=60?`=Debt!E${r}`:'=Zero',`=T${r}-U${r}`]]}s.range('B2:B73').numberFormat='date';s.range('C2:C73').numberFormat='0.0%';s.range('H2:H73').numberFormat='0.0%';s.range('D2:G73').numberFormat='#,##0';s.range('I2:V73').numberFormat='#,##0;(#,##0)';s.setColumnWidth('A',60).setColumnWidth('B',105).setColumnWidth('C:V',115);s.freeze(1,2);} const ret=add('Returns');ret.range('A1:D21').values=[['RETURNS AND EXIT','Base','Upside','Downside'],['Exit capitalization rate'],['Forward 12-month NOI'],['Gross sale value'],['Sale costs'],['Net sale proceeds, unlevered'],['Debt payoff at month 60'],['Yield maintenance placeholder'],['Net sale proceeds, levered'],['Levered XIRR'],['Unlevered XIRR'],['Levered equity multiple'],['Unlevered multiple'],['Levered XNPV at 8%'],['Unlevered XNPV at 8%'],['Minimum annual DSCR'],['Hurdle spread'],['Levered XIRR, $1m fee stress'],['Going-in historical cap'],['Year 1 NOI yield'],['DSCR covenant shortfall (zero passes)']]; const cf=add('Cash Flows');cf.range('A1:H1').values=[['Date','Month','Base levered','Base unlevered','Upside levered','Upside unlevered','Downside levered','Downside unlevered']];cf.range('A2:B2').values=[['=CloseDate',0]];for(let m=1;m<=60;m++){cf.range(`A${m+2}:B${m+2}`).values=[[`=EDATE(CloseDate,B${m+2})`,m]]}cf.range('A2:A62').numberFormat='date'; for(const [i,n] of ['Base','Upside','Downside'].entries()){const c=String.fromCharCode(66+i),l=String.fromCharCode(67+2*i),u=String.fromCharCode(68+2*i),cr=35+i;const f={2:`=GoingCap+Inputs!E${cr}`,3:`=SUM(${n}!R62:R73)`,4:`=${c}3/${c}2`,5:`=${c}4*SaleRate`,6:`=${c}4-${c}5`,7:'=Debt!G61',8:'=Prepay',9:`=${c}6-${c}7-${c}8`,10:`=XIRR('Cash Flows'!${l}2:${l}62,'Cash Flows'!$A$2:$A$62)`,11:`=XIRR('Cash Flows'!${u}2:${u}62,'Cash Flows'!$A$2:$A$62)`,12:`=SUM('Cash Flows'!${l}3:${l}62)/Equity`,13:`=SUM('Cash Flows'!${u}3:${u}62)/UnlevBasis`,14:`=XNPV(DiscountRate,'Cash Flows'!${l}2:${l}62,'Cash Flows'!$A$2:$A$62)`,15:`=XNPV(DiscountRate,'Cash Flows'!${u}2:${u}62,'Cash Flows'!$A$2:$A$62)`,16:`=MIN(${n}!Y2:Y6)`,17:`=${c}10-Hurdle`,18:`=XIRR('Cash Flows'!${n==='Base'?'I':n==='Upside'?'J':'K'}2:${n==='Base'?'I':n==='Upside'?'J':'K'}62,'Cash Flows'!$A$2:$A$62)`,19:'=GoingCap',20:`=SUM(${n}!R2:R13)/PurchasePrice`,21:`=MAX(Zero,MinDSCR-${c}16)`};for(const [r,v] of Object.entries(f))ret.range(`${c}${r}`).formulas=v;cf.range(`${l}2:${u}2`).formulas=[['=-Equity','=-UnlevBasis']];for(let m=1;m<=60;m++){const r=m+2;cf.range(`${l}${r}:${u}${r}`).formulas=[[`=${n}!V${m+1}${m===60?`+Returns!${c}9`:''}`,`=${n}!T${m+1}${m===60?`+Returns!${c}6`:''}`]]}const s=workbook.sheets.get(n);s.range('X1:AB1').values=[['Year','Annual DSCR','NOI','Debt service','Levered operating CF']];for(let y=1;y<=5;y++){const r=y+1,a=(y-1)*12+2,b=y*12+1;s.range(`X${r}:AB${r}`).values=[[y,`=Z${r}/AA${r}`,`=SUM(R${a}:R${b})`,`=SUM(U${a}:U${b})`,`=SUM(V${a}:V${b})`]]}s.range('Y2:Y6').numberFormat='0.00"x"';s.range('Z2:AB6').numberFormat='$#,##0';} cf.range('I1:K1').values=[['Base fee stress','Upside fee stress','Downside fee stress']];['I','J','K'].forEach((c,i)=>{const src=String.fromCharCode(67+2*i);cf.range(`${c}2:${c}62`).formulas=`=${src}2-IF($B2=HoldMonths,PrepayStress,Zero)`});cf.range('C2:K62').numberFormat='$#,##0;($#,##0)';ret.range('B2:D21').numberFormat='$#,##0;($#,##0)';[2,10,11,17,18,19,20].forEach(r=>ret.range(`B${r}:D${r}`).numberFormat='0.00%');[12,13,16,21].forEach(r=>ret.range(`B${r}:D${r}`).numberFormat='0.00"x"'); const sen=add('Sensitivity');sen.range('A1:F1').values=[['LEVERED XIRR: EXIT CAP BY RENT GROWTH','','','','','']];sen.range('A2:F2').values=[['Exit cap / growth',0.01,0.02,0.03,0.04,0.05]];for(let j=0;j<5;j++)sen.range(`A${j+3}`).formulas=`=Returns!B2+${['-0.005','-0.0025','Zero','0.0025','0.005'][j]}`; const sc=add('Sensitivity Calc');sc.range('A1:H1').values=[['Growth','Month','Date','GPR','Other income','EGI','NOI','Operating levered CF']];for(let g=0;g<5;g++){for(let m=1;m<=72;m++){const r=g*72+m+1,br=m+1,gc=String.fromCharCode(66+g);sc.range(`A${r}:H${r}`).formulas=[[`=Sensitivity!${gc}$2`,`=Base!A${br}`,`=Base!B${br}`,`=Base!G${br}*((One+A${r})/(One+Inputs!$B$35))^(B${r}/MonthsYear)`,`=Base!L${br}*((One+A${r})/(One+Inputs!$B$35))^(B${r}/MonthsYear)`,`=D${r}*(One-Base!H${br})*(One-Inputs!$C$35)-D${r}*'Roll Summary'!$B$22+E${r}`,`=F${r}*(One-MgmtRate)-Base!N${br}-Base!O${br}`,`=G${r}-Base!S${br}-Base!U${br}`]]}} const sf=add('Sensitivity CF');sf.range('A1:D1').values=[['Growth','Exit cap','Levered XIRR','Month / CF follows']];const col=n=>{let s='';while(n){n--;s=String.fromCharCode(65+n%26)+s;n=Math.floor(n/26)}return s};for(let m=0;m<=60;m++)sf.range(`${col(m+5)}1`).formulas=`=EDATE(CloseDate,${m===0?'Zero':`'Cash Flows'!B${m+2}`})`;sf.range('E1:BM1').numberFormat='date';for(let j=0;j<5;j++)for(let g=0;g<5;g++){const r=j*5+g+2,gc=col(g+2),sr=g*72;sf.range(`A${r}:C${r}`).formulas=[[`=Sensitivity!${gc}$2`,`=Sensitivity!$A${j+3}`,`=XIRR(E${r}:BM${r},$E$1:$BM$1)`]];sf.range(`E${r}`).formulas='=-Equity';for(let m=1;m<=60;m++)sf.range(`${col(m+5)}${r}`).formulas=`='Sensitivity Calc'!H${sr+m+1}${m===60?`+SUM('Sensitivity Calc'!G${sr+62}:G${sr+73})/B${r}*(One-SaleRate)-Debt!G61-Prepay`:''}`;sen.range(`${gc}${j+3}`).formulas=`='Sensitivity CF'!C${r}`;}sen.range('A2:F7').numberFormat='0.00%';sen.conditionalFormats.add('B3:F7',{type:'colorScale',colors:['red-100','white','green-200']});sen.range('A10:F13').values=[['Base operations held constant except rent and other-income growth.','','','','',''],['Exit cap is absolute, applied to forward 12-month NOI.','','','','',''],['Returns exclude unquoted yield maintenance at current zero placeholder.','','','','',''],['Center cell reconciles to Base XIRR.','','','','','']]; const checks=add('Checks');checks.range('A1:C12').values=[['CONTROL','Residual (zero passes)','Definition'],['Sources less uses',"='Sources Uses'!B10",'Rounded to cents'],['Rent roll count','=COUNTA(RentRoll[Unit])-UnitCount','All 240 rows required'],['Duplicate unit IDs','=COUNTA(RentRoll[Unit])-COUNTA(UNIQUE(RentRoll[Unit]))','No duplicate units'],['Missing market rents','=COUNTBLANK(RentRoll[Market rent])','No missing market rents'],['Statuses reconcile','=UnitCount-COUNTIF(RentRoll[Status],"occupied")-COUNTIF(RentRoll[Status],"vacant")','Occupied plus vacant'],['Debt roll-forward','=ROUND(LoanAmount-SUM(Debt!F2:F61)-Debt!G61,Cents)','Principal balance'],['Sensitivity center','=ROUND(Sensitivity!D5-Returns!B10,Cents)','XIRR reconciliation'],['Renovations at month 30','=Base!E31-UnitCount','All units renovated'],['Cash flow months',"=COUNT('Cash Flows'!B2:B62)-(HoldMonths+One)",'Includes close plus 60 months'],['Base debt service tie','=ROUND(SUM(Base!U2:U61)-SUM(Debt!E2:E61),Cents)','Debt linkage'],['Unquoted yield maintenance','=IF(Prepay=Zero,One,Zero)','1 is an unresolved diligence flag, NOT a model error']]; const dash=add('IC Summary');dash.range('A1:F1').values=[['THE ALDER AT CEDAR PARK','','','','','']];dash.merge('A1:F1');dash.range('A3:D12').values=[['Case comparison','Base','Upside','Downside'],['Levered XIRR','=Returns!B10','=Returns!C10','=Returns!D10'],['Unlevered XIRR','=Returns!B11','=Returns!C11','=Returns!D11'],['Levered multiple','=Returns!B12','=Returns!C12','=Returns!D12'],['Levered XNPV at 8%','=Returns!B14','=Returns!C14','=Returns!D14'],['Exit cap','=Returns!B2','=Returns!C2','=Returns!D2'],['Minimum annual DSCR','=Returns!B16','=Returns!C16','=Returns!D16'],['XIRR with $1m exit fee','=Returns!B18','=Returns!C18','=Returns!D18'],['Exit sale price','=Returns!B4','=Returns!C4','=Returns!D4'],['Recommendation','=IF(B4>=Hurdle,"Conditional proceed","Reprice / defer")','Before yield maintenance','Confirm effective rents']];[4,5,8,10].forEach(r=>dash.range(`B${r}:D${r}`).numberFormat='0.0%');[6,9].forEach(r=>dash.range(`B${r}:D${r}`).numberFormat='0.00"x"');[7,11].forEach(r=>dash.range(`B${r}:D${r}`).numberFormat='$#,##0');dash.range('A14:D19').values=[['Year','Base NOI','Upside NOI','Downside NOI'],[1,'=Base!Z2','=Upside!Z2','=Downside!Z2'],[2,'=Base!Z3','=Upside!Z3','=Downside!Z3'],[3,'=Base!Z4','=Upside!Z4','=Downside!Z4'],[4,'=Base!Z5','=Upside!Z5','=Downside!Z5'],[5,'=Base!Z6','=Upside!Z6','=Downside!Z6']];dash.range('B15:D19').numberFormat='$0.00,,"M"';dash.charts.add('line',{data:'A14:D19',at:'A22',size:{w:880,h:300},title:'NOI by year and underwriting case',axes:{y:{format:'$0.0,,"M"'}}});dash.range('A39:D42').values=[['DECISION LIMITS','','',''],['Before unquoted yield maintenance; illustrative $1m fee stress is not a quote.','','',''],['Historical T12 cap anchors exit cap; tax reset and 3% management fee are modeled.','','',''],['Closing date assumed November 15, 2026; monthly anniversaries, no stub proration.','','','']]; for(const s of workbook.sheets.items||[]){ } // standardize known sheets below const all=['Inputs','Rent Roll','T12','Rent Comps','Roll Summary','Sources Uses','Debt','Base','Upside','Downside','Returns','Cash Flows','Sensitivity','Sensitivity Calc','Sensitivity CF','Checks','IC Summary'];for(const n of all){const s=workbook.sheets.get(n);s.showGridLines=false;s.range(n==='Inputs'?'A1:F1':n==='IC Summary'?'A1:F1':n==='T12'?'A1:O1':n==='Rent Roll'?'A1:H1':n==='Rent Comps'?'A1:F1':n==='Roll Summary'?'A1:H1':n==='Debt'?'A1:I1':['Base','Upside','Downside'].includes(n)?'A1:V1':n==='Cash Flows'?'A1:K1':n==='Sensitivity'?'A1:F1':n==='Sensitivity Calc'?'A1:H1':n==='Sensitivity CF'?'A1:D1':['Returns','IC Summary'].includes(n)?'A1:D1':'A1:C1').format({bold:true,fill:'accent1',color:'white',wrap:true});s.freeze(1);if(!['Base','Upside','Downside'].includes(n)){s.setColumnWidth('A',290).setColumnWidth('B:F',145)} }inp.setColumnWidth('A',180).setColumnWidth('C',310).setColumnWidth('D',620).setColumnWidth('F',190);inp.range('A34:F34').format({bold:true,fill:'accent1',color:'white'});t.setColumnWidth('A',150).setColumnWidth('B',220).setColumnWidth('C:O',110);rr.setColumnWidth('A:B',110).setColumnWidth('C:H',125);workbook.sheets.get('Rent Comps').setColumnWidth('A',240);roll.setColumnWidth('A',310).setColumnWidth('B:H',145);su.setColumnWidth('C',450);checks.setColumnWidth('C',440);debt.setColumnWidth('A',75).setColumnWidth('B',115).setColumnWidth('C:I',155);cf.setColumnWidth('A',115).setColumnWidth('B',65).setColumnWidth('C:K',160);dash.setColumnWidth('A',300).setColumnWidth('B:D',190).setColumnWidth('E:F',100);ret.setColumnWidth('A',350).setColumnWidth('B:D',180);sen.setColumnWidth('A',220).setColumnWidth('B:F',130);sc.setColumnWidth('A:B',90).setColumnWidth('C',115).setColumnWidth('D:H',145);sc.range('C2:C361').numberFormat='date';sc.range('A2:A361').numberFormat='0.0%';sc.range('D2:H361').numberFormat='$#,##0';sf.range('A2:C26').numberFormat='0.00%';sf.range('E2:BM26').numberFormat='$#,##0'; return {returns:ret.range('A1:D21').values,roll:roll.range('A7:B24').values,comps:roll.range('A1:H4').values,sources:su.range('A1:B14').values,checks:checks.range('A1:B12').values,sensitivity:sen.range('A2:F7').values,annual:dash.range('A14:D19').values};{ "ok": false, "error": { "name": "ArtiwrightError", "message": "range.values: every row needs the same number of values (4)." }, "logs": [], "created": [], "removed": [], "slides": 0, "sheets": [ "Rent Comps", "Rent Roll", "T12" ], "version": 3, "lint": { "errors": 0, "warnings": 0 } }artiwright_runconst add=n=>workbook.sheets.add(n), put=(s,a,v)=>{const w=Math.max(...v.map(r=>r.length));s.range(a).values=v.map(r=>[...r,...Array(w-r.length).fill(null)])}; const inp=add('Inputs'); const ass=[['PurchasePrice',48600000,'Price $','Morgan'],['UnitCount',240,'Units','Morgan / rent roll'],['CloseDate',new Date('2026-11-15T12:00:00Z'),'Closing date','ASSUMED Nov 15; monthly anniversary cash flows, no stub'],['HoldMonths',60,'Hold months','Morgan'],['MonthsYear',12,'Months per year','Convention'],['ClosingRate',0.015,'Closing / price','Morgan'],['SaleRate',0.015,'Sale costs / price','Morgan'],['Renovation',1440000,'Renovation escrow $','Funded at close; not deducted again'],['Premium',85,'Premium $/unit/month','Morgan'],['RenovMonths',30,'Renovation months','Straight-line completion ASSUMED'],['LTLTarget',0.02,'Stabilized LTL','Morgan'],['LTLMonths',18,'LTL burn-off months','Linear interpolation ASSUMED'],['MgmtRate',0.03,'Management / EGI','Morgan'],['TaxRate',0.0172,'Tax / purchase price','Morgan; grows with case expenses'],['ReserveUnit',300,'Reserve $/unit/year','Flat nominal; treated as spent'],['LTV',0.625,'Loan / price','Harbor Point 6 Oct 2026'],['LoanRate',0.0535,'Fixed rate','Harbor Point'],['AmortYears',30,'Amort years','Starts after IO'],['IOMonths',24,'IO months','Harbor Point'],['OrigRate',0.01,'Origination / loan','Harbor Point'],['MinDSCR',1.25,'DSCR covenant','Trailing NOI / actual annual debt service'],['Hurdle',0.12,'Levered hurdle','Morgan'],['DiscountRate',0.08,'XNPV discount rate','Morgan'],['Prepay',0,'Exit prepayment $','UNRESOLVED zero placeholder; returns before unquoted yield maintenance'],['PrepayStress',1000000,'Illustrative exit fee $','ASSUMED stress, not a lender quote'],['LoanYears',10,'Loan term years','Five-year exit not open'],['OpenMonths',6,'Open before maturity months','Harbor Point'],['Zero',0,'Zero','Constant'],['One',1,'One','Constant'],['Cents',2,'Check precision','Cents'],['CapStep',0.0025,'Sensitivity cap step','ASSUMED grid increment']];put(inp,'A1',[['INPUTS','Value','Units / description','Source / treatment']]);ass.forEach((a,i)=>{put(inp,`A${i+2}`,[a]);workbook.names.add(a[0],`Inputs!$B$${i+2}`)});inp.range('B2:B32').format({color:'blue-700',fill:'blue-50',numberFormat:'#,##0.00'});inp.range('B4').numberFormat='date';[7,8,12,14,15,17,18,21,23,24,32].forEach(r=>inp.range(`B${r}`).numberFormat='0.00%');put(inp,'A34',[['Case','Rent growth','Vacancy','Expense growth','Exit spread','Source'],['Base',0.03,0.055,0.03,0.005,'Morgan'],['Upside',0.04,0.045,0.0275,0.0025,'Morgan'],['Downside',0.02,0.07,0.035,0.0075,'Morgan']]);inp.tables.add('A34:F37',{name:'Cases'});inp.range('B35:E37').format({numberFormat:'0.00%',color:'blue-700',fill:'blue-50'});put(inp,'A40',[['CONVENTIONS'],['Other income grows with rents; T12 concessions and bad debt remain % of GPR.'],['Vacancy applied to GPR after LTL; renovation premium subject to both.'],['Exit cap = historical T12 NOI / price plus case spread; forward 12-month exit NOI.'],['No tax benefits, promote, reserve refund or working capital; validate debt covenant definition.'],['Model returns exclude unquoted yield maintenance unless Prepay input is populated.']]); const t=workbook.sheets.get('T12');put(t,'O1',[['T12 total']]);t.range('O2:O20').formulas='=SUM(C2:N2)';t.range('C2:O20').numberFormat='#,##0;(#,##0)';const rr=workbook.sheets.get('Rent Roll');rr.range('D2:E241').numberFormat='$#,##0';rr.range('F2:G241').numberFormat='date';const roll=add('Roll Summary');put(roll,'A1',[['Floor plan','Units','Avg sqft','Market / unit','Occupied / unit','Comp ask / unit','Comp ask / sqft','Market + premium']]);['1BR','2BR','3BR'].forEach((p,i)=>{const r=i+2;put(roll,`A${r}`,[[p]]);roll.range(`B${r}:H${r}`).formulas=[[`=COUNTIF(RentRoll[Floor plan],A${r})`,`=AVERAGEIF(RentRoll[Floor plan],A${r},RentRoll[Sq ft])`,`=AVERAGEIF(RentRoll[Floor plan],A${r},RentRoll[Market rent])`,`=AVERAGEIFS(RentRoll[In-place rent],RentRoll[Floor plan],A${r},RentRoll[Status],"occupied")`,`=AVERAGEIF(RentComps[Floor plan],A${r},RentComps[Asking rent])`,`=SUMIF(RentComps[Floor plan],A${r},RentComps[Asking rent])/SUMIF(RentComps[Floor plan],A${r},RentComps[Sq ft])`,`=D${r}+Premium`]]});put(roll,'A7',[['Rent roll metrics','Value'],['Raw units','=COUNTA(RentRoll[Unit])'],['Occupied units','=COUNTIF(RentRoll[Status],"occupied")'],['Market GPR / month','=SUM(RentRoll[Market rent])'],['In-place rent / month','=SUM(RentRoll[In-place rent])'],['Occupied market / month','=SUMIF(RentRoll[Status],"occupied",RentRoll[Market rent])'],['Occupied LTL','=One-B11/B12'],['Physical vacancy','=One-B9/B8'],['T12 GPR','=T12!O2'],['T12 EGI','=SUM(T12!O2:O10)'],['T12 expenses','=SUM(T12!O11:O20)'],['T12 NOI','=B16-B17']]);put(roll,'A20',[['Going-in historical cap','=B18/PurchasePrice'],['Other income annually','=SUM(T12!O7:O10)'],['Concessions + bad debt / GPR','=-SUM(T12!O5:O6)/T12!O2'],['Expenses excluding tax / mgmt','=SUM(T12!O11:O18)'],['Post-renovation market / unit','=B10/UnitCount+Premium']]);put(roll,'A26',[['COMPS CAUTION'],['Unadjusted asking rents, not achieved leases; no quality, vintage or concession adjustments.'],['Validate broker market rents and $85 premium by floor plan and effective rent.']]);workbook.names.add('MarketMonthly',"'Roll Summary'!$B$10").add('InitialLTL',"'Roll Summary'!$B$13").add('GoingCap',"'Roll Summary'!$B$20");roll.range('D2:F4').numberFormat='$#,##0';roll.range('H2:H4').numberFormat='$#,##0';roll.range('G2:G4').numberFormat='$0.00';roll.range('B13:B14').numberFormat='0.0%';roll.range('B20').numberFormat='0.00%';roll.range('B22').numberFormat='0.00%'; const su=add('Sources Uses');put(su,'A1',[['SOURCES AND USES','Amount $','Treatment'],['Purchase price','=PurchasePrice','Broker ask'],['Closing costs','=PurchasePrice*ClosingRate','Price based'],['Renovation escrow','=Renovation','Fully funded at close'],['Origination fee','=PurchasePrice*LTV*OrigRate','Debt fee'],['Total uses','=SUM(B2:B5)',''],['Debt proceeds','=PurchasePrice*LTV','Acquisition financing only'],['Required equity','=B6-B7','Residual funding'],['Total sources','=SUM(B7:B8)',''],['Sources less uses','=ROUND(B9-B6,Cents)','Must equal zero']]);put(su,'A12',[['Unlevered basis','=SUM(B2:B4)','Excludes financing fees'],['Prepayment placeholder','=Prepay','NOT QUOTED'],['Illustrative exit fee stress','=PrepayStress','ASSUMED, not lender estimate']]);workbook.names.add('LoanAmount',"'Sources Uses'!$B$7").add('Equity',"'Sources Uses'!$B$8").add('UnlevBasis',"'Sources Uses'!$B$12");su.range('B2:B14').numberFormat='$#,##0;($#,##0)'; const debt=add('Debt');put(debt,'A1',[['Month','Date','Beginning balance','Interest','Payment','Principal','Ending balance','Trailing Base NOI','Base annual DSCR']]);for(let m=1;m<=60;m++){const r=m+1;put(debt,`A${r}`,[[m]]);debt.range(`B${r}:G${r}`).formulas=[[`=EDATE(CloseDate,A${r})`,m===1?'=LoanAmount':`=G${r-1}`,`=C${r}*LoanRate/MonthsYear`,`=IF(A${r}<=IOMonths,D${r},-PMT(LoanRate/MonthsYear,AmortYears*MonthsYear,LoanAmount))`,`=E${r}-D${r}`,`=C${r}-F${r}`]];if(m%12===0)debt.range(`H${r}:I${r}`).formulas=[[`=SUM(Base!R${r-11}:R${r})`,`=H${r}/SUM(E${r-11}:E${r})`]]}debt.range('B2:B61').numberFormat='date';debt.range('C2:H61').numberFormat='$#,##0';debt.range('I2:I61').numberFormat='0.00"x"'; for(const [i,n]of ['Base','Upside','Downside'].entries()){const s=add(n),cr=i+35;put(s,'A1',[['Month','Date','Rent growth','Market GPR','Renovated units','Premium GPR','Total GPR','LTL %','LTL loss','Vacancy loss','Concession / bad debt','Other income','EGI','Other expenses','Property tax','Management fee','Total expenses','NOI','Reserve','Unlevered op CF','Debt service','Levered op CF']]);for(let m=1;m<=72;m++){const r=m+1;put(s,`A${r}`,[[m]]);s.range(`B${r}:V${r}`).formulas=[[`=EDATE(CloseDate,A${r})`,`=Inputs!$B$${cr}`,`=MarketMonthly*(One+C${r})^(A${r}/MonthsYear)`,`=UnitCount*MIN(A${r}/RenovMonths,One)`,`=E${r}*Premium*(One+C${r})^(A${r}/MonthsYear)`,`=D${r}+F${r}`,`=InitialLTL+(LTLTarget-InitialLTL)*MIN(A${r}/LTLMonths,One)`,`=-G${r}*H${r}`,`=-(G${r}+I${r})*Inputs!$C$${cr}`,`=-G${r}*'Roll Summary'!$B$22`,`='Roll Summary'!$B$21/MonthsYear*(One+C${r})^(A${r}/MonthsYear)`,`=SUM(G${r},I${r}:L${r})`,`='Roll Summary'!$B$23/MonthsYear*(One+Inputs!$D$${cr})^(A${r}/MonthsYear)`,`=PurchasePrice*TaxRate/MonthsYear*(One+Inputs!$D$${cr})^(A${r}/MonthsYear)`,`=M${r}*MgmtRate`,`=SUM(N${r}:P${r})`,`=M${r}-Q${r}`,`=UnitCount*ReserveUnit/MonthsYear`,`=R${r}-S${r}`,m<=60?`=Debt!E${r}`:'=Zero',`=T${r}-U${r}`]]}s.range('B2:B73').numberFormat='date';s.range('C2:C73').numberFormat='0.0%';s.range('H2:H73').numberFormat='0.0%';s.range('D2:G73').numberFormat='#,##0';s.range('I2:V73').numberFormat='#,##0;(#,##0)';put(s,'X1',[['Year','Annual DSCR','NOI','Debt service','Levered op CF']]);for(let y=1;y<=5;y++){const r=y+1,a=(y-1)*12+2,b=y*12+1;put(s,`X${r}`,[[y,`=Z${r}/AA${r}`,`=SUM(R${a}:R${b})`,`=SUM(U${a}:U${b})`,`=SUM(V${a}:V${b})`]])}s.range('Y2:Y6').numberFormat='0.00"x"';s.range('Z2:AB6').numberFormat='$#,##0';} const ret=add('Returns');put(ret,'A1',[['RETURNS AND EXIT','Base','Upside','Downside'],['Exit cap'],['Forward 12-month NOI'],['Gross sale value'],['Sale costs'],['Net unlevered sale proceeds'],['Month 60 debt payoff'],['Yield maintenance placeholder'],['Net levered sale proceeds'],['Levered XIRR'],['Unlevered XIRR'],['Levered multiple'],['Unlevered multiple'],['Levered XNPV at 8%'],['Unlevered XNPV at 8%'],['Minimum annual DSCR'],['Spread to hurdle'],['Levered XIRR: $1m fee stress'],['Going-in historical cap'],['Year 1 NOI / price'],['DSCR shortfall (zero passes)']]);const cf=add('Cash Flows');put(cf,'A1',[['Date','Month','Base levered','Base unlevered','Upside levered','Upside unlevered','Downside levered','Downside unlevered','Base fee stress','Upside fee stress','Downside fee stress']]);put(cf,'A2',[['=CloseDate',0]]);for(let m=1;m<=60;m++)put(cf,`A${m+2}`,[[`=EDATE(CloseDate,B${m+2})`,m]]);cf.range('A2:A62').numberFormat='date';for(const [i,n]of ['Base','Upside','Downside'].entries()){const c=String.fromCharCode(66+i),l=String.fromCharCode(67+2*i),u=String.fromCharCode(68+2*i),st=String.fromCharCode(73+i),cr=35+i;const f={2:`=GoingCap+Inputs!E${cr}`,3:`=SUM(${n}!R62:R73)`,4:`=${c}3/${c}2`,5:`=${c}4*SaleRate`,6:`=${c}4-${c}5`,7:'=Debt!G61',8:'=Prepay',9:`=${c}6-${c}7-${c}8`,10:`=XIRR('Cash Flows'!${l}2:${l}62,'Cash Flows'!$A$2:$A$62)`,11:`=XIRR('Cash Flows'!${u}2:${u}62,'Cash Flows'!$A$2:$A$62)`,12:`=SUM('Cash Flows'!${l}3:${l}62)/Equity`,13:`=SUM('Cash Flows'!${u}3:${u}62)/UnlevBasis`,14:`=XNPV(DiscountRate,'Cash Flows'!${l}2:${l}62,'Cash Flows'!$A$2:$A$62)`,15:`=XNPV(DiscountRate,'Cash Flows'!${u}2:${u}62,'Cash Flows'!$A$2:$A$62)`,16:`=MIN(${n}!Y2:Y6)`,17:`=${c}10-Hurdle`,18:`=XIRR('Cash Flows'!${st}2:${st}62,'Cash Flows'!$A$2:$A$62)`,19:'=GoingCap',20:`=SUM(${n}!R2:R13)/PurchasePrice`,21:`=MAX(Zero,MinDSCR-${c}16)`};for(const[r,v]of Object.entries(f))ret.range(`${c}${r}`).formulas=v;cf.range(`${l}2:${u}2`).formulas=[['=-Equity','=-UnlevBasis']];for(let m=1;m<=60;m++){const r=m+2;cf.range(`${l}${r}:${u}${r}`).formulas=[[`=${n}!V${m+1}${m===60?`+Returns!${c}9`:''}`,`=${n}!T${m+1}${m===60?`+Returns!${c}6`:''}`]]}cf.range(`${st}2:${st}62`).formulas=`=${l}2-IF($B2=HoldMonths,PrepayStress,Zero)`;}cf.range('C2:K62').numberFormat='$#,##0;($#,##0)';ret.range('B2:D21').numberFormat='$#,##0;($#,##0)';[2,10,11,17,18,19,20].forEach(r=>ret.range(`B${r}:D${r}`).numberFormat='0.00%');[12,13,16,21].forEach(r=>ret.range(`B${r}:D${r}`).numberFormat='0.00"x"'); const sen=add('Sensitivity');put(sen,'A1',[['LEVERED XIRR: EXIT CAP BY RENT GROWTH','','','','','']]);put(sen,'A2',[['Exit cap / growth',0.01,0.02,0.03,0.04,0.05]]);for(let j=0;j<5;j++)sen.range(`A${j+3}`).formulas=`=Returns!B2+${['-CapStep-CapStep','-CapStep','Zero','CapStep','CapStep+CapStep'][j]}`;const sc=add('Sensitivity Calc');put(sc,'A1',[['Growth','Month','Date','GPR','Other income','EGI','NOI','Levered op CF']]);for(let g=0;g<5;g++)for(let m=1;m<=72;m++){const r=g*72+m+1,b=m+1,c=String.fromCharCode(66+g);sc.range(`A${r}:H${r}`).formulas=[[`=Sensitivity!${c}$2`,`=Base!A${b}`,`=Base!B${b}`,`=Base!G${b}*((One+A${r})/(One+Inputs!$B$35))^(B${r}/MonthsYear)`,`=Base!L${b}*((One+A${r})/(One+Inputs!$B$35))^(B${r}/MonthsYear)`,`=D${r}*(One-Base!H${b})*(One-Inputs!$C$35)-D${r}*'Roll Summary'!$B$22+E${r}`,`=F${r}*(One-MgmtRate)-Base!N${b}-Base!O${b}`,`=G${r}-Base!S${b}-Base!U${b}`]]}const sf=add('Sensitivity CF'),col=n=>{let s='';while(n){n--;s=String.fromCharCode(65+n%26)+s;n=Math.floor(n/26)}return s};put(sf,'A1',[['Growth','Exit cap','Levered XIRR']]);for(let m=0;m<=60;m++)sf.range(`${col(m+5)}1`).formulas=`=EDATE(CloseDate,${m===0?'Zero':`'Cash Flows'!B${m+2}`})`;sf.range('E1:BM1').numberFormat='date';for(let j=0;j<5;j++)for(let g=0;g<5;g++){const r=j*5+g+2,c=col(g+2),s=g*72;sf.range(`A${r}:C${r}`).formulas=[[`=Sensitivity!${c}$2`,`=Sensitivity!$A${j+3}`,`=XIRR(E${r}:BM${r},$E$1:$BM$1)`]];sf.range(`E${r}`).formulas='=-Equity';for(let m=1;m<=60;m++)sf.range(`${col(m+5)}${r}`).formulas=`='Sensitivity Calc'!H${s+m+1}${m===60?`+SUM('Sensitivity Calc'!G${s+62}:G${s+73})/B${r}*(One-SaleRate)-Debt!G61-Prepay`:''}`;sen.range(`${c}${j+3}`).formulas=`='Sensitivity CF'!C${r}`}sen.range('A2:F7').numberFormat='0.00%';sen.conditionalFormats.add('B3:F7',{type:'colorScale',colors:['red-100','white','green-200']});put(sen,'A10',[['Base operations held constant except rent and other-income growth.'],['Absolute exit cap applies to forward 12-month NOI.'],['Before unquoted yield maintenance at the current zero placeholder.'],['Center cell reconciles to Base XIRR.']]); const checks=add('Checks');put(checks,'A1',[['CONTROL','Residual (zero passes)','Definition'],['Sources less uses',"='Sources Uses'!B10",'Cents'],['Rent roll count','=COUNTA(RentRoll[Unit])-UnitCount','240 rows'],['Duplicate IDs','=COUNTA(RentRoll[Unit])-COUNTA(UNIQUE(RentRoll[Unit]))','No duplicates'],['Missing market rents','=COUNTBLANK(RentRoll[Market rent])','No missing rents'],['Status reconciliation','=UnitCount-COUNTIF(RentRoll[Status],"occupied")-COUNTIF(RentRoll[Status],"vacant")','Occupied + vacant'],['Debt roll-forward','=ROUND(LoanAmount-SUM(Debt!F2:F61)-Debt!G61,Cents)','Principal'],['Sensitivity center','=ROUND(Sensitivity!D5-Returns!B10,Cents)','XIRR'],['Renovations month 30','=Base!E31-UnitCount','240 complete'],['Cash flow count',"=COUNT('Cash Flows'!B2:B62)-(HoldMonths+One)",'Close plus 60 months'],['Base debt service tie','=ROUND(SUM(Base!U2:U61)-SUM(Debt!E2:E61),Cents)','Linked'],['Yield maintenance UNRESOLVED','=IF(Prepay=Zero,One,Zero)','1 = diligence flag, not model error']]);const dash=add('IC Summary');put(dash,'A1',[['THE ALDER AT CEDAR PARK','','','','','']]);dash.merge('A1:F1');put(dash,'A3',[['Case comparison','Base','Upside','Downside'],['Levered XIRR','=Returns!B10','=Returns!C10','=Returns!D10'],['Unlevered XIRR','=Returns!B11','=Returns!C11','=Returns!D11'],['Levered multiple','=Returns!B12','=Returns!C12','=Returns!D12'],['Levered XNPV at 8%','=Returns!B14','=Returns!C14','=Returns!D14'],['Exit cap','=Returns!B2','=Returns!C2','=Returns!D2'],['Minimum annual DSCR','=Returns!B16','=Returns!C16','=Returns!D16'],['XIRR with $1m exit fee','=Returns!B18','=Returns!C18','=Returns!D18'],['Gross sale price','=Returns!B4','=Returns!C4','=Returns!D4'],['Recommendation','=IF(B4>=Hurdle,"Conditional proceed","Reprice / defer")','Before yield maintenance','Validate effective rents']]);[4,5,8,10].forEach(r=>dash.range(`B${r}:D${r}`).numberFormat='0.0%');[6,9].forEach(r=>dash.range(`B${r}:D${r}`).numberFormat='0.00"x"');[7,11].forEach(r=>dash.range(`B${r}:D${r}`).numberFormat='$#,##0');put(dash,'A14',[['Year','Base NOI','Upside NOI','Downside NOI'],[1,'=Base!Z2','=Upside!Z2','=Downside!Z2'],[2,'=Base!Z3','=Upside!Z3','=Downside!Z3'],[3,'=Base!Z4','=Upside!Z4','=Downside!Z4'],[4,'=Base!Z5','=Upside!Z5','=Downside!Z5'],[5,'=Base!Z6','=Upside!Z6','=Downside!Z6']]);dash.range('B15:D19').numberFormat='$0.00,,"M"';dash.charts.add('line',{data:'A14:D19',at:'A22',size:{w:1070,h:300},title:'NOI by year and underwriting case',axes:{y:{format:'$0.0,,"M"'}}});put(dash,'A39',[['DECISION LIMITS'],['Before unquoted yield maintenance; $1m stress is illustrative, not a quote.'],['Historical T12 cap anchors exit cap; tax reset and 3% management modeled.'],['Closing assumed Nov 15, 2026; monthly anniversaries, no stub proration.']]); const all=['Inputs','Rent Roll','T12','Rent Comps','Roll Summary','Sources Uses','Debt','Base','Upside','Downside','Returns','Cash Flows','Sensitivity','Sensitivity Calc','Sensitivity CF','Checks','IC Summary'];for(const n of all){const s=workbook.sheets.get(n);s.showGridLines=false;const ends={'Inputs':'F','Rent Roll':'H','T12':'O','Rent Comps':'F','Roll Summary':'H','Sources Uses':'C','Debt':'I','Base':'V','Upside':'V','Downside':'V','Returns':'D','Cash Flows':'K','Sensitivity':'F','Sensitivity Calc':'H','Sensitivity CF':'C','Checks':'C','IC Summary':'F'};s.range(`A1:${ends[n]}1`).format({bold:true,fill:'accent1',color:'white',wrap:true});s.freeze(1);s.setColumnWidth('A',290).setColumnWidth('B:F',145)}inp.setColumnWidth('A',175).setColumnWidth('C',300).setColumnWidth('D',640);inp.range('A34:F34').format({bold:true,fill:'accent1',color:'white'});t.setColumnWidth('A',155).setColumnWidth('B',220).setColumnWidth('C:O',110);rr.setColumnWidth('A:B',110).setColumnWidth('C:H',125);workbook.sheets.get('Rent Comps').setColumnWidth('A',240);roll.setColumnWidth('A',330).setColumnWidth('B:H',145);su.setColumnWidth('C',420);checks.setColumnWidth('A',330).setColumnWidth('C',420);debt.setColumnWidth('A',75).setColumnWidth('B',115).setColumnWidth('C:I',155);cf.setColumnWidth('A',115).setColumnWidth('B',65).setColumnWidth('C:K',160);dash.setColumnWidth('A',300).setColumnWidth('B:D',190).setColumnWidth('E:F',100);ret.setColumnWidth('A',350).setColumnWidth('B:D',180);sen.setColumnWidth('A',220).setColumnWidth('B:F',130);sc.setColumnWidth('A:B',90).setColumnWidth('C',115).setColumnWidth('D:H',145);sc.range('C2:C361').numberFormat='date';sc.range('A2:A361').numberFormat='0.0%';sc.range('D2:H361').numberFormat='$#,##0';sf.range('A2:C26').numberFormat='0.00%';sf.range('E2:BM26').numberFormat='$#,##0';for(const n of ['Base','Upside','Downside']){const s=workbook.sheets.get(n);s.setColumnWidth('A',65).setColumnWidth('B',110).setColumnWidth('C:V',125);s.freeze(1,2)} return {returns:ret.range('A1:D21').values,roll:roll.range('A7:B24').values,comps:roll.range('A1:H4').values,sources:su.range('A1:B14').values,checks:checks.range('A1:B12').values,sensitivity:sen.range('A2:F7').values,annual:dash.range('A14:D19').values};{ "ok": true, "value": { "returns": [ [ "RETURNS AND EXIT", "Base", "Upside", "Downside" ], [ "Exit cap", 0.05735561728395062, 0.05485561728395062, 0.05985561728395062 ], [ "Forward 12-month NOI", 3567998.7582621165, 3978765.1306231916, 3118525.9029371752 ], [ "Gross sale value", 62208357.737621665, 72531589.79194057, 52100805.98021601 ], [ "Sale costs", 933125.366064325, 1087973.8468791086, 781512.0897032402 ], [ "Net unlevered sale proceeds", 61275232.37155734, 71443615.94506146, 51319293.89051277 ], [ "Month 60 debt payoff", 29042848.08318538, 29042848.08318538, 29042848.08318538 ], [ "Yield maintenance placeholder", 0, 0, 0 ], [ "Net levered sale proceeds", 32232384.28837196, 42400767.861876085, 22276445.807327393 ], [ "Levered XIRR", 0.14745055081574487, 0.21269257766608832, 0.06451347297783043 ], [ "Unlevered XIRR", 0.0978127777607886, 0.1310595869884532, 0.060278347934624985 ], [ "Levered multiple", 1.8616472831641546, 2.401988416931223, 1.3234859047971697 ], [ "Unlevered multiple", 1.5153171598785358, 1.7356060310681858, 1.2959169418499106 ], [ "Levered XNPV at 8%", 6428194.058953257, 14145383.433577135, -1280922.0942441896 ], [ "Unlevered XNPV at 8%", 3783987.8415157944, 11501177.216139622, -3925128.3116816357 ], [ "Minimum annual DSCR", 1.5995143503031723, 1.6977274825003081, 1.4843197156137982 ], [ "Spread to hurdle", 0.02745055081574488, 0.09269257766608832, -0.055486527022169566 ], [ "Levered XIRR: $1m fee stress", 0.14106684051318932, 0.2075774272239046, 0.05588505449743963 ], [ "Going-in historical cap", 0.05235561728395062, 0.05 …artiwright_lint{ "session": "multifamily-underwriting", "document": "model", "rules": "", "severity": "warn", "slide": "" }{ "ok": true, "errors": 0, "warnings": 7, "findings": [ { "rule": "number/unformatted", "sheet": "Roll Summary", "range": "B10:B23", "message": "9 numbers in column B have no number format.", "fix": "range.numberFormat = \"#,##0\" (or \"currency\", \"percent1\", \"millions\", …).", "severity": "warn" }, { "rule": "text/clipped", "sheet": "Base", "range": "Y1", "message": "Base!Y1 is cut off: \"Annual DSCR\" is wider than the column and Z1 is not empty.", "evidence": { "needs": 92, "width": 64 }, "fix": "Widen the column, wrap the text (format({ wrap: true })), or shorten it.", "severity": "warn" }, { "rule": "text/clipped", "sheet": "Base", "range": "AA1", "message": "Base!AA1 is cut off: \"Debt service\" is wider than the column and AB1 is not empty.", "evidence": { "needs": 86, "width": 64 }, "fix": "Widen the column, wrap the text (format({ wrap: true })), or shorten it.", "severity": "warn" }, { "rule": "text/clipped", "sheet": "Upside", "range": "Y1", "message": "Upside!Y1 is cut off: \"Annual DSCR\" is wider than the column and Z1 is not empty.", "evidence": { "needs": 92, "width": 64 }, "fix": "Widen the column, wrap the text (format({ wrap: true })), or shorten it.", "severity": "warn" }, { "rule": "text/clipped", "sheet": "Upside", "range": "AA1", "message": "Upside!AA1 is cut off: \"Debt service\" is wider than the column and AB1 is not empty.", "evidence": { "needs": 86, "width": 64 }, "fix": "Widen the column, wrap the text (format({ wrap: true })), or shorten it.", "severity": "warn" }, { "rule": "text/clipped", "sheet": "Downside", "range": "Y1", "message": "Downside!Y1 is cut off: \"Annual DSCR\" is wider than the column and Z1 is not empty.", "evidence": { "needs": 92, "width": 64 }, "fix": "Widen the column, wrap the text (format({ wrap: true })), or shorten it.", "severity": "warn" }, { "rule": "text/clipped", "sheet": "Downside", "range": "AA1", "message": "Downside!AA1 is cut off: \"Debt service\" is wider …artiwright_runreturn {t12:workbook.sheets.get('T12').range('A1:B20').values,totals:workbook.sheets.get('T12').range('O1:O20').values,statuses:workbook.sheets.get('Rent Roll').range('H2:H241').values.reduce((a,[x])=>(a[x]=(a[x]||0)+1,a),{}),dates:workbook.sheets.get('Sensitivity CF').range('E1:H1').values,cf:workbook.sheets.get('Cash Flows').range('A2:D5').values};{ "ok": true, "value": { "t12": [ [ "Type", "Line" ], [ "Rental income", "Gross potential rent" ], [ "Rental income", "Loss to lease" ], [ "Rental income", "Vacancy loss" ], [ "Rental income", "Concessions" ], [ "Rental income", "Bad debt" ], [ "Other income", "Utility reimbursements" ], [ "Other income", "Parking and storage" ], [ "Other income", "Pet fees" ], [ "Other income", "Late fees and other" ], [ "Operating expense", "Payroll" ], [ "Operating expense", "Repairs and maintenance" ], [ "Operating expense", "Turnover" ], [ "Operating expense", "Contract services" ], [ "Operating expense", "Marketing" ], [ "Operating expense", "Administrative" ], [ "Operating expense", "Utilities" ], [ "Operating expense", "Insurance" ], [ "Operating expense", "Real estate taxes" ], [ "Operating expense", "Management fee" ] ], "totals": [ [ "T12 total" ], [ 5020706 ], [ -413847 ], [ -331637 ], [ -72262 ], [ -38448 ], [ 125468 ], [ 33888 ], [ 38961 ], [ 31971 ], [ 342816 ], [ 109609 ], [ 78525 ], [ 77117 ], [ 36159 ], [ 39356 ], [ 202691 ], [ 155400 ], [ 676800 ], [ 131844 ] ], "statuses": { "occupied": 215, "vacant": 14, "notice": 11 }, "dates": [ [ 46341, 46371, 46402, 46433 ] ], "cf": [ [ 46341.5, 0, -20697750, -50769000 ], [ 46371, 1, 87918.89673787312, …artiwright_runconst inp=workbook.sheets.get('Inputs');inp.range('B4').values=[[new Date('2026-11-15T00:00:00Z')]];inp.range('A33:D33').values=[['VacancyMonths',12,'Vacancy stabilization months','ASSUMED linear burn from actual vacancy to case target']];inp.range('B33').format({color:'blue-700',fill:'blue-50',numberFormat:'0'});workbook.names.add('VacancyMonths','Inputs!$B$33');const roll=workbook.sheets.get('Roll Summary');roll.range('B9').formulas='=COUNTIF(RentRoll[Status],"occupied")+COUNTIF(RentRoll[Status],"notice")';roll.range('B12').formulas='=SUMIF(RentRoll[Status],"occupied",RentRoll[Market rent])+SUMIF(RentRoll[Status],"notice",RentRoll[Market rent])';for(let r=2;r<=4;r++)roll.range(`E${r}`).formulas=`=(SUMIFS(RentRoll[In-place rent],RentRoll[Floor plan],A${r},RentRoll[Status],"occupied")+SUMIFS(RentRoll[In-place rent],RentRoll[Floor plan],A${r},RentRoll[Status],"notice"))/(COUNTIFS(RentRoll[Floor plan],A${r},RentRoll[Status],"occupied")+COUNTIFS(RentRoll[Floor plan],A${r},RentRoll[Status],"notice"))`;roll.range('B8:B24').numberFormat='#,##0';roll.range('B13:B14').numberFormat='0.00%';roll.range('B20').numberFormat='0.00%';roll.range('B22').numberFormat='0.00%';roll.range('A30:B33').values=[['Status','Units'],['occupied','=COUNTIF(RentRoll[Status],"occupied")'],['notice','=COUNTIF(RentRoll[Status],"notice")'],['vacant','=COUNTIF(RentRoll[Status],"vacant")']];roll.range('A35').values=[['Notice units treated as leased and occupied, not vacant.']];for(const[i,n]of ['Base','Upside','Downside'].entries()){const s=workbook.sheets.get(n);s.range('J2:J73').formulas=`=-(G2+I2)*('Roll Summary'!$B$14+(Inputs!$C$${35+i}-'Roll Summary'!$B$14)*MIN(A2/VacancyMonths,One))`;s.setColumnWidth('X:AB',165);s.range('X1:AB1').format({bold:true,fill:'accent1',color:'white',wrap:true})}const sc=workbook.sheets.get('Sensitivity Calc');for(let g=0;g<5;g++)for(let m=1;m<=72;m++){const r=g*72+m+1,b=m+1;sc.range(`F${r}`).formulas=`=D${r}*(One-Base!H${b})*(One+Base!J${b}/(Base!G${b}+Base!I${b}))-D${r}*'Roll Summary'!$B$22+E${r}`;}const ck=workbook.sheets.get('Checks');ck.range('B6').formulas='=UnitCount-COUNTIF(RentRoll[Status],"occupied")-COUNTIF(RentRoll[Status],"vacant")-COUNTIF(RentRoll[Status],"notice")';ck.range('C6').values=[['Occupied + notice + vacant']];ck.range('B8').formulas='=Sensitivity!D5-Returns!B10';ck.range('B8').numberFormat='0.00000000';return {returns:workbook.sheets.get('Returns').range('A1:D21').values,roll:roll.range('A7:B24').values,checks:ck.range('A1:B12').values,sensitivity:workbook.sheets.get('Sensitivity').range('A2:F7').values,annual:workbook.sheets.get('IC Summary').range('A14:D19').values};{ "ok": true, "value": { "returns": [ [ "RETURNS AND EXIT", "Base", "Upside", "Downside" ], [ "Exit cap", 0.05735561728395062, 0.05485561728395062, 0.05985561728395062 ], [ "Forward 12-month NOI", 3567998.7582621165, 3978765.1306231916, 3118525.9029371752 ], [ "Gross sale value", 62208357.737621665, 72531589.79194057, 52100805.98021601 ], [ "Sale costs", 933125.366064325, 1087973.8468791086, 781512.0897032402 ], [ "Net unlevered sale proceeds", 61275232.37155734, 71443615.94506146, 51319293.89051277 ], [ "Month 60 debt payoff", 29042848.08318538, 29042848.08318538, 29042848.08318538 ], [ "Yield maintenance placeholder", 0, 0, 0 ], [ "Net levered sale proceeds", 32232384.28837196, 42400767.861876085, 22276445.807327393 ], [ "Levered XIRR", 0.14542825479149601, 0.21029125242981533, 0.06299728380226512 ], [ "Unlevered XIRR", 0.09698510138979158, 0.1300926230096769, 0.05964169923242661 ], [ "Levered multiple", 1.8534558640540268, 2.392631244941167, 1.3170099698935152 ], [ "Unlevered multiple", 1.5119776427541753, 1.731791254205195, 1.2932768015743072 ], [ "Levered XNPV at 8%", 6262447.113330705, 13955404.436666079, -1411380.4862435572 ], [ "Unlevered XNPV at 8%", 3615349.522494182, 11308306.845829614, -4058478.0770800635 ], [ "Minimum annual DSCR", 1.5995143503031723, 1.6953194819023554, 1.4843197156137982 ], [ "Spread to hurdle", 0.02542825479149602, 0.09029125242981534, -0.05700271619773488 ], [ "Levered XIRR: $1m fee stress", 0.13904988168772547, 0.2051809445170922, 0.05437463305726608 ], [ "Going-in historical cap", 0.05235561728395062, 0.05235 …artiwright_lint{ "session": "multifamily-underwriting", "document": "model", "rules": "", "severity": "error", "slide": "" }{ "ok": false, "errors": 25, "warnings": 0, "findings": [ { "rule": "cell/too-narrow", "sheet": "Sensitivity CF", "range": "G1", "message": "Sensitivity CF!G1 shows #### in Excel: \"2027-01-15\" needs 78 px but column G is 64 px.", "evidence": { "text": "2027-01-15", "needs": 78, "width": 64 }, "fix": "sheet.setColumnWidth(\"G\", 88) or sheet.autofitColumns().", "severity": "error" }, { "rule": "cell/too-narrow", "sheet": "Sensitivity CF", "range": "H1", "message": "Sensitivity CF!H1 shows #### in Excel: \"2027-02-15\" needs 78 px but column H is 64 px.", "evidence": { "text": "2027-02-15", "needs": 78, "width": 64 }, "fix": "sheet.setColumnWidth(\"H\", 88) or sheet.autofitColumns().", "severity": "error" }, { "rule": "cell/too-narrow", "sheet": "Sensitivity CF", "range": "I1", "message": "Sensitivity CF!I1 shows #### in Excel: \"2027-03-15\" needs 78 px but column I is 64 px.", "evidence": { "text": "2027-03-15", "needs": 78, "width": 64 }, "fix": "sheet.setColumnWidth(\"I\", 88) or sheet.autofitColumns().", "severity": "error" }, { "rule": "cell/too-narrow", "sheet": "Sensitivity CF", "range": "J1", "message": "Sensitivity CF!J1 shows #### in Excel: \"2027-04-15\" needs 78 px but column J is 64 px.", "evidence": { "text": "2027-04-15", "needs": 78, "width": 64 }, "fix": "sheet.setColumnWidth(\"J\", 88) or sheet.autofitColumns().", "severity": "error" }, { "rule": "cell/too-narrow", "sheet": "Sensitivity CF", "range": "K1", "message": "Sensitivity CF!K1 shows #### in Excel: \"2027-05-15\" needs 78 px but column K is 64 px.", "evidence": { "text": "2027-05-15", "needs": 78, "width": 64 }, "fix": "sheet.setColumnWidth(\"K\", 88) or sheet.autofitColumns().", "severity": "error" }, { "rule": "cell/too-narrow", "sheet": "Sensitivity CF", "range": "L1", "message": "Sensitivity CF!L1 shows #### in Excel: \"2027-06-15\" needs 78 px but column L is 64 px.", "evidence": { "text": "2027-06-15", "needs": 78, "wi …The roll reconciles to 240 units: 215 occupied, 11 on notice and 14 vacant. Treating notice units as occupied, the Base case produces a 14.5% levered XIRR against the 12% hurdle, before unquoted yield maintenance; Downside is 6.3%.
Two items need IC attention: the renovated rent targets exceed the unadjusted asking comps in each floor plan, and the five-year sale falls inside the loan’s yield-maintenance period. Both will be explicit in the recommendation.
artiwright_runworkbook.sheets.get('Sensitivity CF').setColumnWidth('E:BM',125);const inp=workbook.sheets.get('Inputs');inp.range('B22').numberFormat='0.00"x"';inp.range('A46').values=[['Notice units included as occupied; vacancy interpolates to case target over 12 months.']];const d=workbook.sheets.get('IC Summary');for(const r of [39,40,41,42])d.merge(`A${r}:F${r}`);d.range('A40:F42').format({wrap:true});const metrics=workbook.sheets.add('IC Data');metrics.range('A1:D1').values=[['IC metric','Base','Upside','Downside']];const ret=workbook.sheets.get('Returns');const pct=x=>(x*100).toFixed(1)+'%',money=x=>'$'+(x/1e6).toFixed(2)+'M',mult=x=>x.toFixed(2)+'x';const rv=ret.range('B1:D21').values;const data=[['Levered XIRR',...rv[9].map(pct)],['Unlevered XIRR',...rv[10].map(pct)],['Levered multiple',...rv[11].map(mult)],['Exit cap',...rv[1].map(x=>(x*100).toFixed(2)+'%')],['Minimum annual DSCR',...rv[15].map(mult)],['Levered NPV at 8%',...rv[13].map(money)],['$1m fee stress XIRR',...rv[17].map(pct)]];metrics.range('A2:D8').values=data;metrics.showGridLines=false;metrics.range('A1:D1').format({bold:true,fill:'accent1',color:'white'});metrics.setColumnWidth('A',300).setColumnWidth('B:D',160);const sen=workbook.sheets.get('Sensitivity').range('A2:F7').values,roll=workbook.sheets.get('Roll Summary');const comp=roll.range('A2:H4').values;const sources=workbook.sheets.get('Sources Uses').range('A1:B14').values;return {ic:data,price:money(inp.range('B2').values[0][0]),units:roll.range('B8:B9').values,occupancy:pct(roll.range('B9').values[0][0]/roll.range('B8').values[0][0]),ltl:pct(roll.range('B13').values[0][0]),comps:comp.map(r=>({plan:r[0],units:r[1],market:Math.round(r[3]),inplace:Math.round(r[4]),compAsk:Math.round(r[5]),renovated:Math.round(r[7])})),sources:sources.filter(r=>r[0]).map(r=>[r[0],typeof r[1]==='number'?r[1]:r[1]]),sensitivity:[['Exit cap / rent growth',...sen[0].slice(1).map(pct)],...sen.slice(1).map(r=>[(100*r[0]).toFixed(2)+'%',...r.slice(1).map(pct)])],annual:workbook.sheets.get('IC Summary').range('A14:D19').values,loan:money(workbook.sheets.get('Sources Uses').range('B7').values[0][0]),equity:money(workbook.sheets.get('Sources Uses').range('B8').values[0][0]),payoff:money(rv[6][0]),IOannual:money(workbook.sheets.get('Debt').range('E2').values[0][0]*12),amortannual:money(workbook.sheets.get('Debt').range('E26').values[0][0]*12),terms:{ltv:pct(inp.range('B17').values[0][0]),rate:(inp.range('B18').values[0][0]*100).toFixed(2)+'%',hurdle:pct(inp.range('B23').values[0][0])},checks:workbook.sheets.get('Checks').range('B2:B12').values};{ "ok": true, "value": { "ic": [ [ "Levered XIRR", "14.5%", "21.0%", "6.3%" ], [ "Unlevered XIRR", "9.7%", "13.0%", "6.0%" ], [ "Levered multiple", "1.85x", "2.39x", "1.32x" ], [ "Exit cap", "5.74%", "5.49%", "5.99%" ], [ "Minimum annual DSCR", "1.60x", "1.70x", "1.48x" ], [ "Levered NPV at 8%", "$6.26M", "$13.96M", "$-1.41M" ], [ "$1m fee stress XIRR", "13.9%", "20.5%", "5.4%" ] ], "price": "$48.60M", "units": [ [ 240 ], [ 226 ] ], "occupancy": "94.2%", "ltl": "8.5%", "comps": [ { "plan": "1BR", "units": 96, "market": 1483, "inplace": 1357, "compAsk": 1549, "renovated": 1568 }, { "plan": "2BR", "units": 114, "market": 1870, "inplace": 1716, "compAsk": 1882, "renovated": 1955 }, { "plan": "3BR", "units": 30, "market": 2301, "inplace": 2089, "compAsk": 2348, "renovated": 2386 } ], "sources": [ [ "SOURCES AND USES", "Amount $" ], [ "Purchase price", 48600000 ], [ "Closing costs", 729000 ], [ "Renovation escrow", 1440000 ], [ "Origination fee", 303750 ], [ "Total uses", 51072750 ], [ "Debt proceeds", 30375000 ], [ "Required equity", 20697750 ], [ "Total sources", 51072750 ], [ "Sources less uses", 0 ], [ "Unlevered basis", 50769000 ], [ "Prepayment placeholder", 0 ], [ "Illustrative exit fee stress", 1000000 ] ], "sensitivity": [ [ "Exit cap / rent growth", "1.0%", "2.0%", "3.0%", "4.0%", "5.0%" ], [ "5.24%", "9.8%", "14.1%", "18.0%", …artiwright_lint{ "session": "multifamily-underwriting", "document": "model", "rules": "", "severity": "warn", "slide": "" }{ "ok": true, "errors": 0, "warnings": 12, "findings": [ { "rule": "number/as-text", "sheet": "IC Data", "range": "B2", "message": "IC Data!B2 holds \"14.5%\" as text, so SUM and charts skip it.", "fix": "Write the number itself: range(\"B2\").value = 0.145.", "severity": "warn" }, { "rule": "number/as-text", "sheet": "IC Data", "range": "C2", "message": "IC Data!C2 holds \"21.0%\" as text, so SUM and charts skip it.", "fix": "Write the number itself: range(\"C2\").value = 0.21.", "severity": "warn" }, { "rule": "number/as-text", "sheet": "IC Data", "range": "D2", "message": "IC Data!D2 holds \"6.3%\" as text, so SUM and charts skip it.", "fix": "Write the number itself: range(\"D2\").value = 0.063.", "severity": "warn" }, { "rule": "number/as-text", "sheet": "IC Data", "range": "B3", "message": "IC Data!B3 holds \"9.7%\" as text, so SUM and charts skip it.", "fix": "Write the number itself: range(\"B3\").value = 0.09699999999999999.", "severity": "warn" }, { "rule": "number/as-text", "sheet": "IC Data", "range": "C3", "message": "IC Data!C3 holds \"13.0%\" as text, so SUM and charts skip it.", "fix": "Write the number itself: range(\"C3\").value = 0.13.", "severity": "warn" }, { "rule": "number/as-text", "sheet": "IC Data", "range": "D3", "message": "IC Data!D3 holds \"6.0%\" as text, so SUM and charts skip it.", "fix": "Write the number itself: range(\"D3\").value = 0.06.", "severity": "warn" }, { "rule": "number/as-text", "sheet": "IC Data", "range": "B5", "message": "IC Data!B5 holds \"5.74%\" as text, so SUM and charts skip it.", "fix": "Write the number itself: range(\"B5\").value = 0.0574.", "severity": "warn" }, { "rule": "number/as-text", "sheet": "IC Data", "range": "C5", "message": "IC Data!C5 holds \"5.49%\" as text, so SUM and charts skip it.", "fix": "Write the number itself: range(\"C5\").value = 0.054900000000000004.", "severity": "warn" }, { "rule": "number/as-text", "sheet": "IC Data", "range": "D5", "message": "IC Data!D5 holds \"5.99%\" as text, so SUM and c …artiwright_render{ "session": "multifamily-underwriting", "document": "model", "slides": [], "sheets": [ "IC Summary" ], "range": "A1:F42" }Sheet IC Summary A1:F42
artiwright_runconst make=(recipe,p)=>{const s=deck.slides.add();compose(s,h(recipe,p));return s.id};const ids=[]; ids.push(make(TitleSlide,{title:'The Alder at Cedar Park',subtitle:'Conditional proceed, subject to effective-rent validation and a lender prepayment quote.',eyebrow:'Investment Committee',figures:[{value:'$48.60M',label:'Asking price, 240 units'},{value:'14.5%',label:'Base levered XIRR before yield maintenance'},{value:'$20.70M',label:'Required equity'}]})); ids.push(make(ChartTakeaway,{title:'Renovated targets exceed unadjusted asking comps',chart:{type:'column',categories:['1BR','2BR','3BR'],series:[{name:'Subject market + $85 premium',values:[1568,1955,2386]},{name:'Unadjusted comp asking',values:[1549,1882,2348]}],format:'$#,##0'},figure:{value:'94.2%',label:'Physical occupancy, including notice units'},takeaways:['Occupied loss to lease starts at 8.5%.','Premium phases in over 30 months; LTL reaches 2% in 18.','Validate achieved rents, concessions and renovation scope.'],note:'Sources: broker rent roll and rent_comps.csv; simple floor-plan averages, rounded. Comps are asking rents, not achieved leases. Vacancy reaches case target over 12 months (assumption).'})); ids.push(make(ComparisonTable,{title:'$20.70M of equity funds balanced acquisition uses',rows:[['Uses','Amount ($)','Sources','Amount ($)'],['Purchase price','48,600,000','Acquisition debt','30,375,000'],['Closing costs','729,000','Required equity','20,697,750'],['Renovation escrow','1,440,000','',''],['Origination fee','303,750','',''],['Total uses','51,072,750','Total sources','51,072,750']],takeaways:['Sources less uses equals $0.','Renovation budget is fully funded at close; no double deduction.'],note:'Sources: Morgan deal summary, Harbor Point terms and model Sources Uses. Debt funds 62.5% of purchase price; origination is 1% of loan.'})); ids.push(make(ChartTakeaway,{title:'Base clears the hurdle; Downside falls to 6.3%',chart:{type:'column',categories:['Base','Upside','Downside'],series:[{name:'Levered XIRR',values:[0.14542825479149601,0.21029125242981533,0.06299728380226512]},{name:'Unlevered XIRR',values:[0.09698510138979158,0.1300926230096769,0.05964169923242661]}],format:'0.0%'},figure:{value:'1.85x',label:'Base levered equity multiple'},takeaways:['Levered multiples: 1.85x Base, 2.39x Upside, 1.32x Downside.','Base equity NPV at 8% is $6.26M.','Exit caps: 5.74% Base, 5.49% Upside, 5.99% Downside.'],note:'Source: model Returns. Five-year monthly XIRR, assumed close Nov 15, 2026. Before unquoted yield maintenance. Case rent growth / vacancy / expense growth: Base 3% / 5.5% / 3%; Upside 4% / 4.5% / 2.75%; Downside 2% / 7% / 3.5%.'})); ids.push(make(ComparisonTable,{title:'At 3% growth, a 6.24% exit cap misses the hurdle',rows:[['Exit cap / rent growth','1.0%','2.0%','3.0%','4.0%','5.0%'],['5.24%','9.8%','14.1%','18.0%','21.6%','25.0%'],['5.49%','7.9%','12.3%','16.2%','19.9%','23.4%'],['5.74%','5.9%','10.5%','14.5%','18.3%','21.8%'],['5.99%','4.0%','8.7%','12.9%','16.7%','20.2%'],['6.24%','2.1%','7.0%','11.3%','15.1%','18.7%']],takeaways:['Base cap with 2% rent growth produces 10.5%, below 12%.','Base rent growth with 6.24% exit cap produces 11.3%.'],note:'Source: model Sensitivity. Cells show levered XIRR before unquoted yield maintenance. Base vacancy and expense growth held constant. Absolute exit caps use forward 12-month NOI; Base exit cap equals historical T12 cap plus 50 bps.'})); ids.push(make(TwoColumns,{title:'Coverage passes, but the five-year sale triggers prepayment',left:{heading:'Indicative financing',bullets:['$30.38M loan, 62.5% of price.','5.35% fixed rate; ten-year term.','24 months interest-only, then 30-year amortization.','Annual debt service rises from $1.63M to $2.04M.','Base minimum annual DSCR is 1.60x versus 1.25x.']},right:{heading:'Exit friction remains unquoted',bullets:['Month 60 debt payoff is $29.04M.','Yield maintenance applies before the final six months.','Zero fee is a placeholder, not a lender quote.','Illustrative $1m fee reduces Base XIRR to 13.9%.','Terms remain subject to credit approval and appraisal.']}})); ids.push(make(TwoColumns,{title:'Approve conditionally, not before closing the diligence gaps',left:{heading:'Protect the operating thesis',bullets:['Verify achieved effective rents by floor plan.','Confirm $85 premiums with signed renovated leases.','Validate contractor scope, turn pace and contingency.','Confirm tax reset, insurance and expense run rate.','Monitor notice exposure and leasing conversion.']},right:{heading:'Conditions before a binding commitment',bullets:['Obtain yield-maintenance formula and exit quote.','Confirm lender DSCR definition and annual test mechanics.','Validate appraisal support and final credit approval.','Rerun returns with verified costs and prepayment fee.','Reprice or defer if Base falls below the hurdle.']}}));return ids;{ "ok": true, "value": [ "sl_NQXQ0MSZ", "sl_F87GV2CQ", "sl_0GTN2M9M", "sl_0MTZQ147", "sl_14ABYBW7", "sl_GDBFXZ0G", "sl_W9ENTMG1" ], "logs": [], "created": [ "sl_NQXQ0MSZ", "sh_FGAWJGF0", "sh_1EP396CX", "sh_Z54C8S40", "sh_J3WW7BG0", "sh_BB230JG8", "sh_VETW020M", "sh_20YKS4JJ", "sh_X5NTHYJJ", "sh_TARBDVR4", "sh_SAEND55S", "sl_F87GV2CQ", "sh_SFFJK81C", "ch_S2DKTZT5", "sh_GNEHTCSR", "sh_SAE0H6VC", "sh_PCQQX4ZA", "sh_TM7TCS2H", "sl_0GTN2M9M", "sh_S71XVA2S", "tb_WYTPHAHV", "sh_AZFTGWF5", "sh_BGFSSRPK", "sl_0MTZQ147", "sh_KE8EARMC", "ch_CCXDH0Y3", "sh_ZDFNTYF8", "sh_A8GV7KZ0", "sh_9TG2YJ1F", "sh_EEC3GZ19", "sl_14ABYBW7", "sh_GSDVTD73", "tb_MAR5K71X", "sh_V8GKBN0Q", "sh_BDMJ7PAM", "sl_GDBFXZ0G", "sh_PPBHVN84", "sh_WD6TTYQ8", "sh_NRBW49TK", "sh_MJ302041", "sh_8R04T9DS", "sl_W9ENTMG1", "sh_PRHM184M", "sh_R12FD3RT", "sh_FJKH4HSB", "sh_45BWP4FJ", "sh_XV6JW701" ], "removed": [], "slides": 7, "version": 1, "lint": { "errors": 0, "warnings": 0 }, "theme": { "theme": "Coast", "source": "requested" } }artiwright_render{ "session": "multifamily-underwriting", "document": "deck", "slides": [], "sheets": [], "range": "" }Contact sheet of 7 slides.
artiwright_lint{ "session": "multifamily-underwriting", "document": "deck", "rules": "", "severity": "warn", "slide": "" }{ "ok": true, "errors": 0, "warnings": 0, "findings": [] }artiwright_runconst s=workbook.sheets.get('IC Data');for(const[r,src]of [[2,10],[3,11],[4,12],[5,2],[6,16],[7,14],[8,18]]){s.range(`B${r}:D${r}`).formulas=`=Returns!B${src}`;s.range(`B${r}:D${r}`).numberFormat=[2,3,8].includes(r)?'0.0%':r===5?'0.00%':[4,6].includes(r)?'0.00"x"':'$0.00,,"M"'}const ck=workbook.sheets.get('Checks');ck.range('B8').formulas='=IF(ABS(Sensitivity!D5-Returns!B10)<0.000001,Zero,One)';workbook.sheets.get('Inputs').range('A48:D48').values=[['IRRTolerance',0.000001,'IRR reconciliation tolerance','Iteration / floating-point tolerance']];workbook.names.add('IRRTolerance','Inputs!$B$48');workbook.sheets.get('Inputs').range('B48').format({color:'blue-700',fill:'blue-50',numberFormat:'0.000000'});ck.range('B8').formulas='=IF(ABS(Sensitivity!D5-Returns!B10)<IRRTolerance,Zero,One)';return {expenseRows:workbook.sheets.get('T12').range('A11:B20').values,status:workbook.sheets.get('Roll Summary').range('A30:B33').values};{ "ok": true, "value": { "expenseRows": [ [ "Operating expense", "Payroll" ], [ "Operating expense", "Repairs and maintenance" ], [ "Operating expense", "Turnover" ], [ "Operating expense", "Contract services" ], [ "Operating expense", "Marketing" ], [ "Operating expense", "Administrative" ], [ "Operating expense", "Utilities" ], [ "Operating expense", "Insurance" ], [ "Operating expense", "Real estate taxes" ], [ "Operating expense", "Management fee" ] ], "status": [ [ "Status", "Units" ], [ "occupied", 215 ], [ "notice", 11 ], [ "vacant", 14 ] ] }, "logs": [], "created": [], "removed": [], "slides": 0, "sheets": [ "Rent Comps", "Rent Roll", "T12", "Inputs", "Roll Summary", "Sources Uses", "Debt", "Base", "Upside", "Downside", "Returns", "Cash Flows", "Sensitivity", "Sensitivity Calc", "Sensitivity CF", "Checks", "IC Summary", "IC Data" ], "version": 7, "lint": { "errors": 0, "warnings": 0 } }artiwright_finalizeAlder_Cedar_Park_Underwriting.xlsx{ "session": "multifamily-underwriting", "document": "model", "file": "Alder_Cedar_Park_Underwriting.xlsx", "requirements": { "sheets": [ "Inputs", "Rent Roll", "T12", "Rent Comps", "Roll Summary", "Sources Uses", "Debt", "Base", "Upside", "Downside", "Returns", "Cash Flows", "Sensitivity", "Sensitivity Calc", "Sensitivity CF", "Checks", "IC Summary" ], "tables": [ "RentRoll", "TrailingOps", "RentComps", "Cases" ], "charts": 1, "values": [ { "cell": "Checks!B2", "equals": 0, "tolerance": 0 }, { "cell": "Checks!B3", "equals": 0, "tolerance": 0 }, { "cell": "Checks!B4", "equals": 0, "tolerance": 0 }, { "cell": "Checks!B5", "equals": 0, "tolerance": 0 }, { "cell": "Checks!B6", "equals": 0, "tolerance": 0 }, { "cell": "Checks!B7", "equals": 0, "tolerance": 0 }, { "cell": "Checks!B8", "equals": 0, "tolerance": 0 }, { "cell": "Checks!B9", "equals": 0, "tolerance": 0 }, { "cell": "Checks!B10", "equals": 0, "tolerance": 0 }, { "cell": "Checks!B11", "equals": 0, "tolerance": 0 }, { "cell": "'Roll Summary'!B8", "equals": 240, "tolerance": 0 }, { "cell": "Returns!B10", "equals": 0.14542825479149601, "tolerance": 0.000001 } ], "slideCount": 0, "nativeCharts": [], "nativeTables": [], "tableTotals": [], "fonts": { "allowed": [] }, "lint": { "block": [ "error", "warn" ], "waive": [] } } }{ "ok": true, "blocking": [], "warnings": [], "checks": [ { "step": 1, "code": "path", "ok": true }, { "step": 2, "code": "validate", "ok": true }, { "step": 3, "code": "requirements", "ok": true }, { "step": 4, "code": "lint", "ok": true }, { "step": 5, "code": "publish", "ok": true } ], "path": "./sessions/multifamily-underwriting/outputs/Alder_Cedar_Park_Underwriting.xlsx", "sha256": "43295e5f6688790f1391b4cc131a1beb53d4a4c82742cae8ed981711f02ecc5b", "bytes": 202654, "receiptPath": "./sessions/multifamily-underwriting/.artiwright/receipts/Alder_Cedar_Park_Underwriting.43295e5f6688.1794787702768.receipt.json" }artiwright_finalizeAlder_Cedar_Park_IC.pptx{ "session": "multifamily-underwriting", "document": "deck", "file": "Alder_Cedar_Park_IC.pptx", "requirements": { "sheets": [], "tables": [], "charts": 0, "values": [], "slideCount": 7, "nativeCharts": [ "sl_F87GV2CQ", "sl_0MTZQ147" ], "nativeTables": [ "sl_0GTN2M9M", "sl_14ABYBW7" ], "tableTotals": [], "fonts": { "allowed": [] }, "lint": { "block": [ "error" ], "waive": [] } } }{ "ok": true, "blocking": [], "warnings": [], "checks": [ { "step": 1, "code": "path", "ok": true }, { "step": 2, "code": "size", "ok": true }, { "step": 2, "code": "validate", "ok": true }, { "step": 3, "code": "package", "ok": true }, { "step": 4, "code": "slideCount", "ok": true }, { "step": 4, "code": "nativeCharts", "ok": true }, { "step": 4, "code": "nativeTables", "ok": true }, { "step": 4, "code": "numbers", "ok": true }, { "step": 5, "code": "chartData", "ok": true }, { "step": 6, "code": "lint", "ok": true }, { "step": 7, "code": "reimport", "ok": true }, { "step": 8, "code": "publish", "ok": true } ], "path": "./sessions/multifamily-underwriting/outputs/Alder_Cedar_Park_IC.pptx", "sha256": "4f86ee67aafa1e2999b9b7406fb78056785609df474170303b5e4b29f4f0b343", "bytes": 46909, "manifestPath": "./sessions/multifamily-underwriting/outputs/Alder_Cedar_Park_IC.pptx.manifest.ndjson", "receiptPath": "./sessions/multifamily-underwriting/.artiwright/receipts/Alder_Cedar_Park_IC.4f86ee67aafa.1794787700231.receipt.json" }
Completed both in Coast theme:
- [Underwriting model](outputs/Alder_Cedar_Park_Underwriting.xlsx)
- [Seven-slide IC deck](outputs/Alder_Cedar_Park_IC.pptx)
| Returns | Base | Upside | Downside |
|---|---:|---:|---:|
| Levered XIRR | 14.5% | 21.0% | 6.3% |
| Unlevered XIRR | 9.7% | 13.0% | 6.0% |
| Equity multiple | 1.85x | 2.39x | 1.32x |
Checks passed: all 240 units included, no duplicate unit IDs, and sources equal uses at $51,072,750, including $20,697,750 of equity.
IC recommendation: conditional proceed. Returns above exclude unquoted yield maintenance; an illustrative $1M exit fee reduces Base XIRR to 13.9%. The deck also flags renovated rent targets above unadjusted asking comps. Closing timing, vacancy stabilization and renovation pacing assumptions are explicitly labeled in the model.
Lint during the run
25 date headers that would show ####
Lint found nothing to fix in the deck. In the model it found 25 dated column headers on Sensitivity CF too narrow, so Excel would show ####, six clipped headers on the case sheets, unformatted numbers on Roll Summary, and 12 IC Data figures typed in as text. The agent widened the columns, formatted the numbers and replaced the text with formulas linked to Returns. Both files finalized with lint blocking on warnings, and nothing to report.
- lintmodel1 × number/unformatted6 × text/clipped
- lintmodel25 × Column too narrow (####)
- lintmodel12 × Numbers stored as text
- lintdeckNo findings
- finalizeAlder_Cedar_Park_Underwriting.xlsxNo findings
- finalizeAlder_Cedar_Park_IC.pptxNo findings
Finalize report
Nothing is published until these pass. Finalize checks the real file and never overwrites one.
How this example was made: the request above went to a LangGraph agent on gpt-6.1-sol, built with Artiwright's Python package, using agent-runs/framework_run.py. The files are what it finalized, opened in PowerPoint and Excel for the screenshots. Companies, people and figures are made up.












