rental properties

When I was in the rental section,  comment was made to take a expense instead of asset.  Then when I did go back the questions did not pertain to the property rental.    How is the depreciation calculated?