Deductions & credits

(a) I am a US resident alien but worked in India for part of the year in 2022 and earned Indian salary. 

(b) India

(c) US tax home as I was in US for the whole of 2021.

(d) I was employed for Sept 2021-October 2022 in India and came to US in October . I stayed continuously for 365 days in India but when I claim Foreign earned income exclusion the software shows I owe $3000 in taxes, so I was thinking to claim foreign tax credit as in India I paid 20% taxes .

(e) My husband is in USA and I was working in India for a year and now came back to US and started working in US

(f) India

(g) I filed retrun in India as resident in FY 21-22. Now I want to file married filing jointly with my husband. Actually in 2022 I meet the residency test of both India and USA