From a28a14d6a5bf0c32154f513ab0461496048c56c9 Mon Sep 17 00:00:00 2001 From: Alpha Date: Fri, 24 Jul 2020 14:52:18 +0700 Subject: [PATCH] Update --- templates/parts/mortgage-calculator.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/templates/parts/mortgage-calculator.php b/templates/parts/mortgage-calculator.php index 7873df01..84aee963 100755 --- a/templates/parts/mortgage-calculator.php +++ b/templates/parts/mortgage-calculator.php @@ -40,8 +40,7 @@ $deposit_start = apply_filters( 'opalestate_mortgage_deposit_start', $loan_amount = $start_price - $deposit_start; $interest_rate_month = $interest_rate_start / 12; $number_of_payments_month = $years_start * 12; -var_dump( $max_price ); -$monthly = round( ( $loan_amount * $interest_rate_month ) / ( 1 - pow( 1 + $interest_rate_month, -$number_of_payments_month ) ), 2 ); +$monthly = round( ( $loan_amount * $interest_rate_month ) / ( 1 - pow( 1 + $interest_rate_month, -$number_of_payments_month ) ), 2 ); $total = $deposit_start + ( $monthly * $number_of_payments_month ); $price_percent = $loan_amount / $total * 100;