How many days out could a scan be?

An obstetrical ultrasound can be as much as 1-2 weeks off, before or after the due date.