Real estate income and capital gains