Hi, my wife is holding B-2 visa as a tourist to come to US. Can I file the tax jointly and does she belongs to RA or NRA?

Does the substantial presence test apply since 2021 or 2020?