How did the calculate your pregnancy

Maddie

I miscarried and passed naturally by December 30 but then found out I was pregnant again February this month with home test has this happened to you how did you calculate before appointment ?