I don't think there is any set amount of time. It all depends on how the fermentation is going. That depends on how much yeast you pitched, what type of yeast you pitched, how healthy it was, the temperature and your OG.
You could start dialing it in for your process. Say you typically brew beer around 1.045-1.050 (like a lot of us do). If you know you always ferment in a temperature controlled cooler at 65, and you always pitch a 1L starter of Wyeast 1056. Then, you would start being able to predict when the fermentation is done. Not that kraeusen is really an indicator that fermentation is over.