Hi I done cocain 2days ago I have a test on july 28 will I pass?

Most likely not. but more importantly, stop using. I know it can be hard, but the long term consequences are too dangerous. Please seek help to stop.
It depends. If you are an infrequent user, your urine may be clean in as little as 2-3 days. If you use frequently, your urine may contain the metabolite that is tested for up to two weeks.