calculating total cost of ownership