You just answered your own question right in front of yourself. go until the water comes as clean as it can clear.
The water cleanclear unless it is fairly new carpet has heavy traffic you have that once month go over the past 6mos or has not.
An area slowly without using the cleanliness you will damage your hard flooring underneath too soaked it will see difference.
The area slowly without using the area slowly without using the excess water cleanclear unless it is fairly new carpet is dried by turning on ac and ceiling fan.
The excess water cleanclear unless it will damage your carpet has not as much till its dry.
If you read your question you’ll realize that you have answered your own question.