How was your due date calculated?

By date of last period or by date of insemination? If it was by date of last period, was your cycle length taken into account? I have 30 day cycles and think those calculations are usually based on 28.

My two doctors have calculated it differently, so just curious.