CBPCalc :: FunctionAddWorkDays: Bitrix method

      
<?php 
//  CBPCalc :: FunctionAddWorkDays()
//  /dist/bitrix/modules/bizproc/classes/general/calc.php:683

    
private function FunctionAddWorkDays($args)
    {
        if (!
is_array($args))
            
$args = [$args];

        
$ar $this->ArrgsToArray($args);
        
$date array_shift($ar);
        
$offset $this->getDateTimeOffset($date);
        
$days = (int) array_shift($ar);

        if ((
$date $this->makeTimestamp($date)) === false)
            return 
null;

        if (
$days === || !CModule::IncludeModule('calendar'))
            return 
$date;

        
$date $this->addWorkDay($date$days);

        return new 
Bizproc\BaseType\Value\DateTime($date$offset);
    }