The medication is usually recommended as a short-term treatment, which can be 2 to 4 weeks, or longer. Your doctor or pharmacist should advise you on the duration of your treatment based on your specific medical condition or needs.