How is a due date calculated?

Nicole
Can someone explain this? I know I ovulated March 17th. I am 11 dpo and had a positive hpt. If I put in the calculator when my due date would be it comes up dec 8 and that I'm three weeks. How does this work? Mathatically I'm maybe a week and a half?