$priceOfTheHome = $_POST["priceOfTheHome"]; $downPaymentAmount = $_POST["downPaymentAmount"]; $durationOfReplay = $_POST["durationOfReplay"]; $interestRate = $_POST["interestRate"]; $priceOfTheHome echo "

Price of Home: number_format($priceOfTheHome, 2, '.', ',')

"; echo "

Down payment: number_format($downPaymentAmount, 2, '.', ',')

"; echo "

Duration: number_format($durationOfReplay, 2, '.', ',')

"; echo "

Interest: number_format($interestRate, 2, '.', ',')

"; $totalSimpleInterest = ($priceOfTheHome - $downPaymentAmount) * $interestRate * $durationOfReplay; echo "

Total Simple Interest: number_format($totalSimpleInterest, 2, '.', ',')

"; $totalPriceOfHome = $priceOfTheHome + $totalSimpleInterest; echo "

Total Price of Home: number_format($totalPriceOfHome, 2, '.', ',')

";