Net investment income includes rental income, dividends, interest, capital gains, and other types of passive income. It does not include income from an active trade or business.