Accuracy?

I have not been to the doctor yet but I was curious on how accurate the app is for your due date. Also how do they actually measure how far a long you are?