Courts count the cost of care