Depreciation can only be taken on a property when it " Is available to be rented."
And then it is only deducted in the year which it was available to be rented.
So if you bought the place n 2015, and then placed it is service in 2017, only 2017 depreciation can be taken in 2017.