Log 2681

Here is the PHP formula that satisfies all the given rules and calculates the departure date based on the entry date and the number of months in the management commitment field:

$entryDate = #תאריך כניסה למנוי#;
$months = #מס’ החודשים להתחייבות ניהול#;

$departureDate = date(‘d/m/Y’, strtotime($entryDate . ‘ + ‘ . $months . ‘ months’));

return $departureDate;

Please note that you need to replace `#תאריך כניסה למנוי#` with the actual entry date value and `#מס’ החודשים להתחייבות ניהול#` with the actual number of months value.

Select the fields to be shown. Others will be hidden. Drag and drop to rearrange the order.
  • Image
  • SKU
  • Rating
  • Price
  • Stock
  • Availability
  • Add to cart
  • Description
  • Content
  • Weight
  • Dimensions
  • Additional information
  • Attributes
  • Custom attributes
  • Custom fields
Click outside to hide the comparison bar
Compare