How often should carpeting be replaced for health purposes?

For allergy or general cleanliness health concerns the carpet should be replaced with a hard surface like wood or tile.