$expectedDiscount = #הנחה צפויה#; $totalAmount = #סכום משוקלל לעסקה#;
$result = $totalAmount – $expectedDiscount;
return $result;