public function activeFrequency($frequency, $actualFrequency){
        $frequency= explode(' ', trim($frequency, ' '));        
        $condition= $this->validInterval($frequency[0], $actualFrequency['i']) && $this->validInterval($frequency[1], $actualFrequency['H']) 
                && $this->validInterval($frequency[2], $actualFrequency['d']) && $this->validInterval($frequency[3], $actualFrequency['m']) 
                && $this->validInterval($frequency[4], $actualFrequency['w']);
        return $condition;
    }