I need to calculate the depreciation expensed for an assets sold.

I have the purchase date 07/14/07 and sold it on 06/04/10

I need the months between the two dates