Take the downpayment as a number from 0-1

This commit is contained in:
Chris Diesch 2025-04-06 16:15:42 -06:00
parent 27cfe80cbd
commit 8c9ef5ced8

View File

@ -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