Deductions & credits

If you meet all tests it doesn't matter if your employer is a US company, and deposits your pay in US bank. Here are rules:

 The tax home must be in a foreign country, and

• The taxpayer must have foreign earned income, and

• The taxpayer meets either the bona fide residence test or the physical presence test. 

If you are unfamiliar with these terms, I suggest you see a tax professional, as there are additional considerations.