Is Minority Interest Taken Out to Arrive at Net Income?

When calculating Net Income, should you remove minority interest (non-controlling interest) first? In practice I have seen it done this way, and I have also seen it ignored to arrive at “Net Income” which is then split into “attributable to shareholders” and “attributable to minority interests”.

Which number should I use for calculating Net Margin for instance?

Thanks.