Compound logic in YAML for conditional variable

I know basic YAML but I’m struggling with how to combine two conditional statements into a compounded one.

In this example, I want to know the total amount of power my EVs are consuming when charging, but only if the vehicle is located at home. If the vehicle is not located at home I want this to return 0 for that vehicle. Both may be charging at home, just one, or none.

{% if is_state('device_tracker.voyager_location_tracker', 'home') %}
{{ states('sensor.voyager_charger_power_charger_power')|int(0) }}
{% else %}
0
{% endif %}
+
{% if is_state('device_tracker.enterprise_location_tracker', 'home') %}
{{ states('sensor.enterprise_charger_power')|int(0) }}
{% else %}
0
{% endif %}

This works, but unfortunately it just returns the following:

0

+

2

How do I get it to return the actual sum of the two numbers as an integer?

{{ ( states('sensor.voyager_charger_power')|int(0) if is_state('device_tracker.voyager_location_tracker', 'home') else 0 ) + ( states('sensor.enterprise_charger_power')|int(0) if is_state('device_tracker.enterprise_location_tracker', 'home') else 0 ) }}