How do they determine

Sarah
How do they determine how far you are? The first day of my last period was 12/17.. I took 2 test on 1/12 which was 4/5 days before my missed one it was negative then took one a week late. So how am I 6+5 now?