Margin call and stop out are determined from Margin Level, Margin Level = (Equity / total Margin) x 100%.
From this data, we can already know how to calculate the reasons why a margin call occurs, because (capital) equity resilience is not proportional to margin.