public function GetExpiredRecommendedDate() { $rec_time = COption::GetOptionInt('timeman', 'workday_finish', 18 * 3600); if ($last_entry = $this->_GetLastData()) { $ts_start = CTimeMan::GetTimeTS($last_entry['DATE_START']); if ($rec_time < $ts_start) { $rec_time = $ts_start + intval($last_entry['TIME_LEAKS']) + 300; } } return $rec_time; }