{% set pct = ((p.composite or 0) | float / 10 * 100) | round(0) | int %} {% set level = 'high' if pct >= 65 else ('mid' if pct >= 40 else 'low') %}