Coughs normally last up to 18 days. But depending on the cause of the cough the cough can last longer than that.
If a cough does last longer than 18 days you should go see a doctor because a normal cough should go away within 18 days and any longer than 18 days something else is likely wrong.