If you want to be sure, don’t consume any cannabis for 90 days before the test. If you know what type of screening you’ll be subjected to, you could consider adapting your period of abstinence to the respective detection window. The safest way to go is to abstain from cannabis for as long as possible.