Calculating the total cost of ownership