They might do a drug screen as part of the PSI(pre-sentencing investigation), but as the charge isn't drug related, it's not 100%. However, you're likely to end up on probation, and they love to do random drug screens.
You said "whats the max time urine stays in your system". I'm going to assume you mean THC, as it's the only drug that stays in your system long enough(5-90 days, depending on frequency of use) to screw you up on a drug test you know is coming.
Good luck, and whatever you're using/smoking, stop now and you'll be fine in case you get a thorough PSI investigation, or end up on probation.