Take the downpayment as a number from 0-1
This commit is contained in:
parent
27cfe80cbd
commit
8c9ef5ced8
@ -69,7 +69,7 @@ def get_risk_pool_health() -> float:
|
|||||||
def compute_mre(home_value: float,
|
def compute_mre(home_value: float,
|
||||||
down_payment: float,
|
down_payment: float,
|
||||||
consumer_fico: int) -> float:
|
consumer_fico: int) -> float:
|
||||||
|
down_payment *= home_value
|
||||||
investor_value = home_value - down_payment
|
investor_value = home_value - down_payment
|
||||||
loan_to_value = float(investor_value/home_value)
|
loan_to_value = float(investor_value/home_value)
|
||||||
# the monthly payment is made on the value from the investors
|
# the monthly payment is made on the value from the investors
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user