In most cases, a mucus cough can last up to 3 weeks. But the right treatment options may offer relief much earlier.