The length of time opiate stay in your system and detected in the urine varies. Most people are able to metabolize and excrete the drug faster while other doesn’t. In an average, opiates stays in the urine in 2-5 days still depending on how long the person is taking the drugs.
Just like every other drug, the amount of time opiates stay in your system is dependent on several factors. These include height, weight, gender, amount of drug taken, frequency of use, potency of drug, metabolism, and so on. Three-five days seems to be the approximate time.