The body metabolizes cocaine fast, so after 24 hours it doesn’t show in the test
Cocaine detectable in hair for up to 90 days.