setup waiting period adeptive to the number of ranks