modifyoing MIF calcultions to include both MI and MA values