{% extends "global/Base.html" %} {% load otree_tags %} {% block title %}Simulation of Bonus Payment and Total Payment{% endblock title %} {% block content %} {% if goal_treatment < 4 %}
For your bonus payment, you were allocated round {{runde}} and the optimal portfolio had {{ optimal_inv1 }} invested in Asset 1, and {{ optimal_inv2 }} invested in Asset 2. As your response from round {{ runde }} ({{ input1 }} in Asset 1, and {{ input2 }} in Asset 2) deviates by {{ abs_diff }} from the optimal portfolio's investment into Asset 2, your bonus payment is £2.00 - {{ abs_diff }} / 5 000 = {{ payoff }}.
{% else %}WORK IN PROGRESS (Calculates Values for both asset not just the portfolio) For your bonus payment, you were allocated round {{runde}} and the simulation returned a {{percent_1}} return for Asset 1 and a {{ percent_2 }} return for Asset 2. Together with your investment decision from round {{runde}} this results in a portfolio value of {{paid_input1}} * (1 {{percent_1}} ) + {{paid_input2}} * (1 {{percent_2}} ) = {{payoff_100}} and a payment of {{payoff_100}}/ 10 000 = {{payoff}}. So your bonus payment from this experiment, which is paid in addition to your base payment of {{base_pay}}, is {{payoff}}.
{% endif %}Taking into account your bonus and base payments, your total payment is {{base_pay}} + {{payoff}} = {{total_pay}} .
{% for field in form %} {% formfield field %} {% endfor %}
{# #}{% next_button %}
{% endblock %} {% block scripts %} {% endblock %}