Liquidation Price - Calculator for Hedge Mode

The official calculator doesn’t seem to work for hedge mode, and the support page below contains an example which is not hedge mode. The formula mentioned there is quite difficult to figure out for hedge mode.

https://www.binance.com/au/support/faq/b3c689c1f50a44cabb3a84e663b81d93

Anyone know of a calculator (either code or UI) that works for this?

Thanks!