I'm so confused

I went to doctor and im 15 weeks pregnant exact. she told me baby is measuring 14 weeks and 4 days.. how if I'm 15 weeks based off of my period. I am so confused...