Confused about due date

H

Can someone please help me understand this ?im 31 weeks and 5 days (so basically 32 weeks which equals to 8 months right?) so why is my midwife saying my due date is 28th of November and this app is saying there is still 56 days left ? Shouldn’t it mean there’s only 4 weeks left if the whole process is 9 months ?

I might sound very uneducated but something doesn’t sound right