How to calculate the due date ?

Angel

Hi moms, do you know how to calculate the due date? I followed many apps for pregnancy tracking and all of them showed I’m 16 weeks of pregnancy ( calculated from my first day of my last period was May 19.2020 ), but today I went for ultrasound and the lady told me I’m 13 weeks 2 days only, sounds strange to me because I can see from ultrasound picture it also says 16w6d. Anybody knows to calculate exactly the due date?