How do we calculate how old someone was when they died?
{% assign age = BirthDate | DateDiff:DeathDate, 'Y' %} {% if age > 0 %} {{ age }} {% endif %}
You'll need to make sure to set DeathDate above that code. This could be done in a workflow or from a person attribute, etc.