“How do (British National Health) doctors know the exact number of weeks and/or days a baby is?”
If you’re white and not of the nobility, your child is 22 weeks and, sadly, will be left to die.
If you’re upper class or immigrant then, obviously, your child is 24 weeks and every effort will be made to assure that it lives.