calculate mcc