How are the weeks pregnant determined?

Kelly

If its based on the last missed period?