When (AccountBalance + UnrealizedPnl) < Position * MarkPrice * MaintenanceMarginRatio, the account is no longer safe and can be liquidated.

Did this answer your question?