What is optimum time quantum value?

Is there any formula for calculating an optimum t.q?