1st day of last period

im confused about this. is it the 1st day after your period ends or the 1st day it starts? ?? my 1st pregnancy i gave the 1st day after my period ended not the start. and that date determined my due date.