How long does it take to pass a swab test after smoking weed?

30 days give or take. If you dont normally smoke, it takes 2 to 3 weeks