Following the rules setup here
https://www.cms.gov/medicare/new-medicare-card/understanding-the-mbi-with-format.pdf