You should allow a reasonable curing time for the carpet. It is better to use the carpet after that. But it cannot be said certainly. The time depends on the weather, the thickness of carpet, and the level of soiled the carpet is. A few carpets dry under two hours while others may take three to six hours to dry completely. However, it also depends on air movers, Through keeping the windows open and turning ceiling fans on.