add Startkapital input for renter initial savings

This commit is contained in:
Johannes
2026-03-20 02:05:41 +01:00
parent 9b9fd6a76a
commit 1bf69a6043
3 changed files with 11 additions and 2 deletions

View File

@@ -30,7 +30,7 @@ function run_simulation(p) {
// --- state ---
let balance = loan;
let home_value = p.home_price;
let portfolio = upfront_buy; // renter invests this lump sum
let portfolio = upfront_buy + (p.start_capital || 0); // renter invests this lump sum + any extra savings
let monthly_rent = p.monthly_rent;
let cum_buy_cost = upfront_buy; // running cash spent on buying