$totalPayment = #סה”כ לתשלום#; $amountPaid = #סכום ששולם#;
$result = $totalPayment – $amountPaid;
return $result;