Sex and relationships

I had sex this morning and he came inside me how long do I need to take plan b ?