There is no real "definite" answer to this.
I have watched students being urine-screened for many years, and a good general estimate would be no more than 7 days. Most sources say 5 days.
Cocaine is metabolized by the liver (like all drugs) and excreted in feces and urine. Some of its metabolites can end up stored in fat cells, which can then be occasionally excreted in the urine; in some cases (possibly depending on your fitness level and number of fat cells)for up to 30 days.
I'm sure you were looking for a definite answer, and I'm sorry I can't give an exact number of days. But at least it's one based on experience.
Another factor is the strength of the cocaine and the frequency of the use. Since cocaine isn't regulated (duh) there's no way to tell what the strength of Swim's cocaine was. This last reason is why it's impossible to predict how many days cocaine can be detected in the urine after use.