Value At Risk and Maximum Loss Optimization