code: function nextTime(value, cronTime){
    if(typeof(cronTime) == 'number'){
      if(cronTime == -1)
        return value + 1;
      else
        return cronTime;
    }else if(typeof(cronTime) == 'array'){
      if(value < arr[0] || value > arr[arr.length -1])
        return arr[0];
      
      for(let i = 0; i < arr.length; i++)
        if(value < arr[i])
          return arr[i];
    }
    
    return null;
  }
docs: return the next match time of the given value