actually, my friend didnt smoke for over 2 months and then he smoked like 3 hours before his parents randomly tested him (just really bad luck) and he still failed.. so i dont htink it takes 24 hours