Log 2413
24/12/2023 2023-12-25 0:05$startDate = strtotime(#תאריך תחילת תשלום#);
$today = time();
if(date(‘d’, $startDate) == date(‘d’, $today)) {
$paymentCount = intval(#מספר תשלומים#) – 1;
} else {
$paymentCount = intval(#מספר תשלומים#);
}
$totalPaymentAmount = $paymentCount * floatval(#סכום חודשי לתשלום#);
return number_format($totalPaymentAmount, 2);