Pregnancy test

Can anyone give an input on how long after you take plan b can you take a pregnancy test for it to be accurate? Anyone help me please 😭