How to.calculate for due date?

M

I just got my period back at 9 months postpartum. I was expecting to get it again the month after. We just found out we're expecting and based on the hcg levels, it's a very early pregnancy. OB told us maybearound 3 weeks?