Sold a home in 2016, I lived in it for three years. In 2016 it was a rental home, how do I find out if I'm paying capitol gains on it? Why does it add it to my income?