rental property sale
If I bought a property in 2002 as a primary residence for 180000 then i refinanced the property in 2005 and used it as a rental property then isold it for 315000 in 2017 when i refinanced the property in 2005 the property had a appraised value of 310000. can i use 310000 as my cost basis?