Depending on how dirty it was ,from 4 to 12 hours , after steam cleaning.
The 2 main reasons are poor laying and general wear and tear.
Australian standards say anything over 5 meters in length and every 2nd width ,however it depends on the weight of the carpet and if not new ,then the condition of the carpet as well.
More then likely.
Steam cleaning will clean your carpet more thoroughly.