How do you calculate your due date?

J

My estimated due date was May 16 (40 weeks) before we found out I'm having twins. I know doctors won't let us go that far.... so how do you know your new estimated due date or is it determined by your MFM?