$sum = #סכום#; $numPayments = #מספר תשלומים#; $initialPayment = #סכום תשלום ראשון#;
$result = ($sum – $initialPayment) / ($numPayments – 1);
return $result;