Integrate The Function Upper Limit Of Magnesium