Ultrasound accuracy

When ultrasounds are done and it tells you how far along you are, how accurate is it? Like when they use the machine to measure it (if you know what I mean)