Depends on how regular you smoked.
If.it was the first time trying it or the first time in a long time , then you're looking around 3days
If its a blood test, a few days.
If its a urine test, about 2 weeks.
If its a hair test, about 3 months.