Converted calculateMortality for multidimensional model