How do I know when I need to perform a DOT post-accident drug test, and how much time do I have to get it done?

For simplicity, we have created an online quiz that you can answer to quickly determine this.