how to calculate m mix