Why the due dare change from appointment in the ultrasound?

L
7 weeks due date mentioned in the ultrasound was 16 july.
10 weeks its 12.
Confused!!