-When I lived in CA, I only paid taxes to CA. Same for MD income.
- I did not earn CA income while in MD and vice versa.
Any individual who maintains a place
of abode in Maryland and spends in the aggregate
183 days or more in Maryland is considered a
resident for Maryland personal income tax
purposes and must file a Maryland Resident
Personal Income Tax Return.6 You may be eligible
for a credit on your other state’s return for taxes
paid to Maryland.
If an individual maintains a place of abode in
Maryland and spends fewer than 183 days in
Maryland, they are considered a nonresident and
must file a Maryland Nonresident Personal Income
Tax Return and pay tax on all income from
Maryland tangible sources.
for Ca you file form 540NR
For taxable years beginning on or after January 1, 2002, if you are a nonresident or a part-year resident, you determine your California tax by multiplying your California taxable income by an effective tax rate. The effective tax rate is the California tax on all income as if you were a California resident for the current taxable year and for all prior taxable years for any carryover items, deferred income, suspended losses, or suspended deductions, divided by that income. Use the following formula:
Prorated tax = CA taxable income × Tax on total taxable income ÷ Total taxable income
The "Other State Credit" applies only when you have income taxed by both states. If you literally moved your domicile (your main, permanent home) from one state to the other during the tax year, and you had no CA-source income as an MD resident, and no MD-source income as a CA resident, then you aren't eligible for any Other State Credit.
The situation would be different if your domicile stayed the same throughout the year, and you were in the other state only on a temporary basis - for example to attend school. Post back if that's your situation.