urgent plz help

How long till i can take plan b? 
Does it cost from pharmacy ?