PlanB HELP ME

how soon after unprotected sex will plan- b work??????? Can it be up to a week later??? SOS