Tramahater is right, but also wanted to point out that if your liver is 'sluggish' at the moment (for eg. if your abusing meds and taking over the prescribed dose regularly) it can take longer to filter it out, meaning it will show up longer on a drug test.
About 72 hours after the last pill.....But it's not an exact science!