This is NOT financial advice. No information or data shown on this website should be relied upon for any investment activities and is for demonstration purposes only. I am not responsible for any false data and I shall not be held liable for any consequences thereof.
The calculations used are based on this Kraken Support Page. However I have no idea if I implemented the algorithm correctly. So don't use it for anything serious or at least check the correctness yourself using the official resources provided by Kraken. You should also keep in mind that it probably only works for single margin trades as Krakens margin call calculation is based on your total equity and your used margin.