Rental property purchased 15 years ago, with various percentages of use

I bought a townhome in Aug 2005.  I lived in it but rented out 3 of the 4 bedrooms until Sept 2010. I considered it a 75% rental from Aug 2005 to Sept 2010.  I then converted it to personal use through December of 2011 (15 months).  It then become a 100% rental Jan 2012 until I sold it in July 2020.   How do I calculate the depreciation percentage/amount now that it has been sold?