This method uses an algorithm from Gundlach/Lehrbass p.74f to compute the loss distribution. A small modification on the structure of the two loops was done to compute the CDF parallel to the PDF and stop if a desired level is reached.
B (corresponding to alpha and b in Gundlach/Lehrbass p.74), necessary for risk contributions, will be erased at the end if
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.