The general “rule of thumb” is, 30 days. But if you only took one hit one day, it could be out a couple days later, or even not show up at all. Or it could dirty your piss for 30 days. It all depends on who you are, and what you do. Fat content, fitness level, water intake and other things matter a lot.
But there are some strange things that happen. I’m skinny. And I’ve peed in a cup for a friend so they could give it to their parents, after 31< days of SOBER probation…And it tested positive for Marijuana. So he ended up having to tell his parents he smoked. But, moral of the story: “30 days” is not “Weed Law”…God never said “And weed shall be in thy system for exactly 30 days.” It depends who you are, what you do, and…How weed works with you personally…. You can get it out faster, or it can take longer. It all depends.