Using your principal residence as a rental..

Q: I bought a house in 2010 for $600,000 and lived in that house as my principal residence until 2013.  Then I bought and moved into another property. I rented out the first house and reported all income on my tax returns. In 2016, I sold the rental property for $900,000. When I file my tax return for 2016, how much capital gains am I supposed to declare and report to the CRA? Is it $900K minus $600K, minus the cost of disposition; or $900K minus whatever the deemed fair market value of the property at the time when I moved out in 2013, minus the cost of disposition?