I can take 6-12 hrs. This is dependant on how saturated the carpet is and how dry and warm the atmosphere is at the time.
For the carpet to dry quickest, you want the atmosphere to be dry, warm, and airy. For example, leaving your doors open, in a warm breezy but dry day, instead of humid still day where not much breeze will travel will yield the best results.