Confused as to where to report personal use with sale of my rental home

How do I report the personal use portion of selling my rental home that I previously lived in? I do not qualify for the capital gains exclusion. I rented it out for the last 8 years and lived in it for 18 yrs. before that.