I have had a beer in primary for as much as 4 weeks without issue. Most of the time, I am holding it for not quite 2 weeks with the last few days in cold crash. I think the answer really depends a lot on the health of the yeast when pitched and the temperature at which you are holding the fermenter.