This always depends on how much you consume, how you consume it, your genetics, age, gender, and other personal biological factors. Effects can take up to 24 hours to fully dissipate, but THC can be detectable in the bloodstream for up to seven days or more, depending on several factors, including frequency of use.  There are few reports of secondary intoxication (i.e. from secondhand smoke or vaping), but it also depends on a number of factors, including dose and ventilation of the space