Does anyone know !

Hi does anyone know how you calculate how far on in the pregnancy you are do you go off the date of your last period ? I’m confused x