This commit is contained in:
Alpha 2020-07-24 14:52:18 +07:00
parent 74ef353f31
commit a28a14d6a5

View File

@ -40,7 +40,6 @@ $deposit_start = apply_filters( 'opalestate_mortgage_deposit_start',
$loan_amount = $start_price - $deposit_start; $loan_amount = $start_price - $deposit_start;
$interest_rate_month = $interest_rate_start / 12; $interest_rate_month = $interest_rate_start / 12;
$number_of_payments_month = $years_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 ); $total = $deposit_start + ( $monthly * $number_of_payments_month );