It varies. Wait until the bubbles come really slowly, and rack to secondary. Once your gravity is where you want it and the yeast is settling out, you're ready to bottle.
May you go marching in three-measure time
Dressed up as asses, drunk to the nines
Swing from the rafters, shouting those songs
Gone unsung for far too long