I don't know how they made the calculation, but here is how I would do it:
Take a random sample of people (say a 1,000) properly stratified among different demographics that may indicate a higher/lower prevalence for diabetes such as gender, age, ethnicity, income levels, regional, lifestyle etc to reflect the entire population. Then test everyone in the sample for diabetes, and determine the percentage of diabetics. Apply this percentage to the entire population, and compare with the actual known number of diagnosed diabetics to determine the number of undiagnosed diabetics. Of course, this is an estimate and there will be a statistical error factor.
This process is broadly similar to polling during election times.