https://legal1031.com/news/what-is-the-medicare-tax-or-net-investment-income-tax-niit/#:~:text=Many%20investors%20selling%20real%20estate,term%20capital%20gains%20tax%20rates.