How is pregnancy month actually calculated?

So I would class 4 weeks as a month? As som people say 40 weeks is 10 month pregnancy right?

So I would class 24 weeks as the start of month 6 of your pregnancy? But I saw on Pinterest some of these work out differently so really confused?

Also if you are from the UK how do your midwives work it out?