It is different for every compound, making it very hard to say how long they exactly stay in your system.
Some only stay in your system for 24 hours, while others can take up to several months to leave the system.