Due date?

Kendra
Would I base my due date off my last period or what baby measures? My doctor has me down as 25 weeks but baby is measuring 3 weeks behind idk which due date to use oct.4th or oct.17th