A single use of cannabis may be detected by a typical urine drug test for 1-6 days depending on amount smoked, individual body metabolism rates, and the cutoff level used by the test (15 ng/ml, 20 ng/ml, 50 ng/ml, 100 ng/ml). Chronic or daily use may be detected by a typical urine drug test for 7-30 days depending on the same factors listed above. Lower levels of Cannabinoids do remain in the body for longer than 30 days, but appear unlikely to result in a positive drug test due to cutoff levels.
Information about cannabis in drug tests.
erowid.org