Part B and Part D penalties are calculated separately
A gap in medical coverage and a gap in drug coverage are evaluated independently, using different formulas -- it's possible to owe one penalty, both, or neither, depending on your specific coverage history for each.
Creditable coverage is the detail worth double-checking
Not every type of coverage counts as creditable for avoiding these penalties -- confirming this in writing, rather than assuming, is the single most common way to catch a mistake before it becomes a lifetime cost.
- Active employer group coverage (generally 20+ employees) is the most common qualifying exception for Part B
- COBRA and retiree coverage generally don't count as creditable for this purpose