In the presence of negative margins, we subtract the largest negative margin from max(0, largest positive margin).