Learn to calculate VaR to measure the maximum potential losses of your portfolio. Simple and advanced methods explained step by step with Python code.