90 days.
explanation: Hair drug tests have the longest detection period, and can typically detect drug use for up to 90 days. Depending on the drugs used, a hair sample can sometimes help determine when drug use occurred and whether it's been discontinued.