How do you calculate case mix index?

Case mix index (CMI) is a relative value assigned to a diagnosis-related ... by dividing the average cost per patient (or day) by the hospital's calculated CMI.