- Idea
- The same math for every property, fresh every day.
- What the AI does
- It does not do the math. Later it may put into sentences what the models have already stored.
- Reference canton
- Schwyz. Anywhere else, a thin base is marked as an estimate.
- Stack
- TypeScript, Next.js, Fastify, PostgreSQL, Docker Compose, Vitest.
- Next
- A cost calculator for the service-charge statement.
What it is about.
Before I decide to buy, I do not want a gut feeling. I want the same math for every property. That is why immoHunter pulls the market data every day and runs everything through the same models. The cockpit is where I read the report.
The most important sentence is right here: A language model does not calculate rent, tax, return, or rank. Later it may put into sentences what the models have already stored.
The order is fixed, and the explanation comes last, from fields that are already there.
Six challenges, six answers.
If you pull data every day and make decisions from it, you have to be able to trust the data and the math. These are the answers for that.
The same property has to stay the same property.
Listings disappear, come back, and show up twice.
How it is solvedCleaned records: duplicates are marked, the identity stays, and the price history stays on the record.
A run can fail.
Half the data is worse than none.
How it is solvedA run that does not come through clean leaves the current set untouched.
Outside Schwyz the base is thin.
A number with no origin looks the same as one that is backed.
How it is solvedSchwyz is the reference canton. Anywhere else, a thin base is marked as an estimate. Rent, the tax proxy, distance to public transit, the renovation band, and market dynamics are separate layers, each with an origin.
An apartment, a house, and a multi-family building are not the same thing.
One formula for everything distorts the result.
How it is solvedThe same models, but assumptions of their own for each property type.
A high return can lie.
Otherwise a ranking rewards exactly the outliers.
How it is solvedHard exclusions apply before any weight counts. A weak calculation stays capped, even in a strong location.
One grade for everything is convenient, and wrong.
A single town score hides what drives it.
How it is solvedThere isn't one. I sort a town by a named metric.
The return, calculated honestly.
The return I look at before a decision is an equation. I can explain every line of it.
Maintenance and reserves, insurance, management, vacancy (exactly once), and the tax proxy. Ground-lease interest counts as soon as it is known.
Service charges that can be passed on, because they are pass-through. Amortization, because it is wealth. An assumed gain in value, because it is not an observed market return.
The score: exclude first, then weight.
- Special cases outside apartment, house, and multi-family
- A ground lease with no known interest rate
- A missing or outdated calculation model
- A high return with low confidence in the rent
- An upside that comes only from renovation
- Nominal prices, missing area or rooms: they land in Review, not in Core
- Whether the numbers carry
- Rent quality
- Tax quality
- Renovation upside
- Infrastructure
- Market dynamics
- A deduction for risk
A weak calculation stays capped, even in a strong location.
Core and Review are the lists I read. What is excluded stays visible and is not ranked. The reason on the card comes from the stored signals. A trend shows up only once there are enough real nights of data.
Who does the math, who explains.
- They calculate rent, tax, return, and rank
- They run deterministically, the same every day
- They are checked with Vitest
- Read Core and Review in the cockpit
- Decide what I look at and what I buy
- Set the assumptions
- May later put into sentences what is already stored
- Does not do the math
- Changes no number
What the AI gave me.
A clear line
AI explains. It does not calculate. Every number stays traceable, and a mistake in the text can never become a mistake in the math.
Fun, without getting sloppy
Built for fun does not mean built without tests. The models run under Vitest, and the math lives in its own package.
What the project shows.
- Data qualityIdentity, duplicates, price history, and the origin of each layer.
- The domain modelReturn, affordability, and renovation calculated so I can defend every line.
- ExplainabilityHard exclusions before weights. Named metrics instead of one overall grade.
- Scope and limitsNot a consumer product for all of Switzerland, not tax advice, not a quote. I say what the tool is not.
- Solid engineeringTypeScript, one repository, the math and the score as their own packages, jobs in workers.
Limits and what is next.
The tax proxy compares towns. It is not tax advice and it is not a personal assessment. The renovation band is a calculation for the decision, not a quote and not a site walk. The French-speaking cantons are out of scope.
Next I am building a cost calculator for the service-charge statement. The input is a property's annual statement. What can be passed on stays pass-through. What stays with the owner reduces the return, and every line stays traceable to the receipt. After that come acquisition costs, affordability, and a renovation budget, on the same records.
Engineering in detail.
The long version, as I wrote it.
Open the long version
Pipeline
The order is fixed. First I pull that day's market data. That becomes cleaned records: the same property stays the same property, duplicates are marked, and the price history stays. A run that does not come through clean leaves the current set untouched. Then every property for sale is run through the same models. Apartment, house, and multi-family have assumptions of their own. Then comes the score you can explain, then the lists in the cockpit. I write the sentences on top last, from fields that are already there.
Schwyz is the reference canton. Anywhere else, a thin base is marked as an estimate. Rent, the tax proxy, distance to public transit, the renovation band, and market dynamics are separate layers in this calculation, each with an origin.
Return
The return I look at before a decision is an equation. Base rent of the living area, plus parking as its own income when it is rented out with the place. From that come the costs the owner keeps, and the interest on the debt. The remainder is measured against the equity share.
What stays with the owner: maintenance and reserves, insurance, management, vacancy, and the tax proxy. Ground-lease interest counts as soon as it is known. Vacancy is deducted exactly once.
Service charges that can be passed on, and the recurring contributions in a condominium, stay pass-through. They do not reduce this return. Amortization stays wealth and is not a cost line here. An assumed gain in value stays out. It is not an observed market return.
Score
Hard exclusions apply before any weight counts. Special cases outside apartment, house, and multi-family. A ground lease with no known interest rate, and ground lease otherwise out of the standard list. A missing or outdated calculation model. A high return with low confidence in the rent. An upside that comes only from renovation. Nominal prices and missing area or rooms land in Review, not in Core.
The score itself is made of whether the numbers carry, rent quality, tax quality, renovation upside, infrastructure, market dynamics, and a deduction for risk. A weak calculation stays capped, even in a strong location. Core and Review are the lists I read. What is excluded stays visible and is not ranked. The reason on the card comes from the stored signals.
Alongside that run the daily metrics and the price gap to the segment. A trend shows up once there are enough real nights of data. I sort a town by a named metric. There is no single town score that folds everything into one grade.
Limits
The tax proxy compares towns. It is not tax advice and it is not a personal assessment. The renovation band is a calculation for the decision, not a quote and not a site walk. immoHunter is not a consumer product for all of Switzerland. The French-speaking cantons are out of scope.
Stack
TypeScript, one repository. The cockpit is Next.js, the API is Fastify, the data is PostgreSQL. The math lives in its own package, the score in a second, the jobs in workers. A scheduler in the application queues the nightly delta calculation. Docker Compose holds the services together. Vitest checks the models.
Roadmap
Next I am building a cost calculator for the service-charge statement. The input is a property's annual statement. What can be passed on stays pass-through, what stays with the owner reduces the return, and every line stays traceable to the receipt. After that, a few more tools for the trade, on the same records: acquisition costs, affordability, a renovation budget. I am not building a single town score along the way.