How to know when

I had sex in feb 17th and took the plan b pill on feb 20th my period came normal feb. 28tj then in March my period never came found out I was pregnant the 30tb of March and on April 6 my sonogram said I was 5 weeks! So how do I kno when I became pregnant??? Feb are March