Formula and assumptions
This educational USDT linear isolated-margin model assumes initial margin = entry notional / leverage, maintenance margin = quantity × mark price × MMR − deduction, and quantity = entry notional / entry price.
Long = [E × (1 − 1/L) − D/Q] / (1 − M)
Short = [E × (1 + 1/L) + D/Q] / (1 + M)
E: entry price; L: leverage; D: maintenance deduction; Q: quantity; M: MMR as a decimal. The model refuses a result if it crosses the selected public tier boundary. These equations do not reproduce an exchange account liquidation quote.