To calculate depreciation using the straight-line method for 2 years, you would divide the asset's initial cost by the useful life of the asset in years. Then, you would divide this annual depreciation expense by 2 to get the depreciation expense for each of the 2 years. Finally, multiply this amount by the number of years to get the total depreciation for the 2-year period.