How do developers determine cool down duration?

It is not that complicated, they just spin the RNG wheel with values to determine this.