The question
Multiple-based valuation in a spreadsheet works until you have to ask the same question a second time. Then the numbers are scattered across tabs, some formulas have been overwritten, and portfolio P&L is calculated in a different currency than the trades.
I wanted one place where a company is valued at its own three-year multiples, the quality score comes from data, and portfolio P&L is converted at the transaction-date FX rate. And where the PDF report cannot show different numbers than the screen.
- three valuation methods: P/E, P/S and EV/EBITDA;
- 16 quality criteria in four blocks;
- a FIFO transaction journal with TWR/MWR;
- risk, rebalancing, a screener and a PDF company card.
What I built
A local desktop application for Windows 10/11, in a frameless WebView2 window. It pulls data from FactSet through the Scrab API, quotes from Yahoo and FX rates from the NBP. Responses are cached on disk, so the app is fast and works offline.
The app has eight views: portfolio, company card, journal, performance, risk, calendar, rebalancing and screener. The company card brings the verdict, two target prices, upside, score and raw metrics into one place.

Demo
90 seconds: portfolio, company card, chart and rebalancing. Recorded on demo data, in Polish.
How it works
Data passes through four layers: fetch, cache, model and interface. Each layer is separately testable, and the model does not know whether the numbers went to the screen or to the PDF.
The cache keeps a per-ticker bundle for four hours. Switching views does not trigger another API call, and a lost connection does not stop work on data that has already been fetched.

The hard part
The biggest temptation was to make the PDF a separate report. Then the card and the screen could drift apart after every model change. So the PDF is generated from the same calculation as the view — there is no second calculation path.
The second difficulty is missing data. The model does not zero the score when one criterion is missing: weights renormalise to the available data, and the interface says which criteria are missing. For a loss-making company, valuation falls back to P/S instead of pretending P/E makes sense.
The result
The NVDA card from November 2026: score 95.8/100 (A), conservative target price USD 418.80, optimistic USD 490.78, upside +157% to the conservative one. This is not a price forecast — it is a report on assumptions.
In this example the three-year median P/E is much higher than today’s multiple, so the model adds a return to the historical valuation. That is the main source of the high upside, and the reason the card shows the components of the target price, not just the result.
The project has 17 Python modules and 28 REST endpoints. The technical documentation runs to 31 pages and is generated from Markdown; the PDF company card is three pages.
Limitations
These limitations are in the documentation because I would rather name them than let a reviewer discover them.
- the app is local and single-user: no login, cloud or multi-user access;
- it runs on Windows 10/11 with WebView2;
- fetching new data requires a paid Scrab/FactSet session;
- portfolio P&L is gross — the model does not calculate Polish PIT-38 or Belka tax;
- the journal does not handle stock splits; data is daily, not intraday;
- educational material, not investment advice.