VaR and CVaR Theoretical Foundations and Calculation Methods