From 8c9ef5ced8be0b7bb2491aa4216bf9e195ce6a7b Mon Sep 17 00:00:00 2001 From: Chris Diesch Date: Sun, 6 Apr 2025 16:15:42 -0600 Subject: [PATCH] Take the downpayment as a number from 0-1 --- __init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/__init__.py b/__init__.py index 39e5e33..6ae3e43 100644 --- a/__init__.py +++ b/__init__.py @@ -69,7 +69,7 @@ def get_risk_pool_health() -> float: def compute_mre(home_value: float, down_payment: float, consumer_fico: int) -> float: - + down_payment *= home_value investor_value = home_value - down_payment loan_to_value = float(investor_value/home_value) # the monthly payment is made on the value from the investors