How to calculate Maryland "Income received during Non-residency"

How do I calculate income received during non-residency for the scenario below? Adding box 1 from the two W2s for work done outside of Maryland, for myself and spouse is $5000 more than what was has been stated in the screenshot below . Adding box 5 is even more.

 

Screen Shot 2025-04-08 at 7.43.57 AM.png