add Startkapital input for renter initial savings
This commit is contained in:
2
calc.js
2
calc.js
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user