... just checking back in, as I never saw you come into the chat.
By the way, California does not have a foreign earned income exclusion.
Also, According to the California Franchise Tax
Board, you are considered a resident of California if you are present in California other than for a temporary or transitory purpose, or if you are domiciled in California but you are outside California for a temporary or transitory purpose.
California is very aggressive in this regard.
(Please don't shoot the messenger) :)
And finally, if you have to pay taxes to a foreign government there IS a credit for that against your US taxes:
The foreign tax credit
is intended to reduce the double tax burden that would otherwise arise when foreign source income is taxed by both the United States and the foreign country from which the income is derived.
Four tests must be met for the tax to qualify for the credit:
The tax must be a legal and actual foreign tax liability
The tax must be imposed on you
You must have paid or accrued the tax, and
The tax must be an income tax (or a tax in lieu of an income tax)
Hopefully, I've covered everything.
Hope this helps
If this HAS helped, I would appreciate a feedback rating of 3 (OK) or better … That's the only way they will pay us here.
HOWEVER, if you need more on this, PLEASE COME BACK here, so you won't be charged for another question.