When to stop consuming THC?

How early should I stop consuming or smoking THC for it to be cleared of the baby’s system at birth ?