Box 40 on the Maryland Form 502 should reflect the total Maryland and local tax withheld, which generally should be the total of box 14 on all your 1099-R forms and W2 forms. Here are the steps to ensure accuracy and verify this in TurboTax:
Gather all your 1099-R forms: Make sure you have all your 1099-R forms related to Maryland.
Check box 14 on each form: Verify the amounts listed in box 14 for Maryland tax withheld.
Sum the amounts: Add up the amounts from box 14 on all your 1099-R forms.
After logging in to TurboTax double check at this link and be sure that there are no duplicate 1099s. If so, delete one by clicking the trash can.
If error persist, click this link and delete 1099-R(s) and renter