Create a dynamic select element
You can do something like this (with lots of refactoring possible):

{% set thisYear = now | date("Y") %}
{% set startYear = thisYear - 1 %}
{% set endYear = startYear - 4 %}

{% set yearRange = startYear..endYear %}

&lt;select name=""&gt;
{% for year in yearRange %}
    &lt;option value="{{ year }}"&gt;{{ year }}&lt;/option&gt;
{% endfor %}
&lt;/select&gt;