Question: how long do you have until you take a plan b?
Answer: You should take it as soon as possible. Emergency contraception (AKA the morning-after pill) works up to five days (120 hours) after unprotected sex. But the sooner you take it, the better it works.