Marijuana? When to stop.

I live in Indiana, im 24 weeks & smoke weed. Yeah some don’t support it but to each their own! Keep your opinion to yourself if you don’t!!!

But my question is when is a good time to stop smoking so I know I will be clean at delivery? My ob knows I smoke, he told me it was fine during pregnancy but I have to pass my urine screen upon delivery.

Is it the standard 30 days to leave the system or longer when pregnant??

EDIT: my OB can’t tell me when to stop because it’s not legal where I’m at. His exact words were, “ Your tox report tested positive for marijuana, it’s fine during pregnancy but you have to be clean upon delivery”