What is the maximum time a hair follicle test can date back to?

6 months or years it depends of how many times you smoke or did any other drug