When is a medical treatment worth its cost?