Many illicit drugs remain in the urine for up to a week, except for marijuana which can leave detectable traces for up to a month, particularly in the case of heavy users.