Gestational age question

So, is gestational age and due date according to a 28 day cycle? I have a longer cycle....30-31 days. So if I put my numbers in and it comes out to 5 weeks, am I technically earlier because I ovulated later? (My doctor says I’m behind).