Stopping the pill

I have missed 4 days of pills and had unprotected sex.. how soon can you get pregnant after not taking the pill anymore..? I’ve been on the pill for a little more than 2 years now.