$creation_date = strtotime(#תאריך סיום טיפול בפנייה#) – strtotime(#תאריך יצירה#); return $creation_date;