Short answer
HubSpot's KB: if any number property in a custom equation has no value, the calculation doesn't run and the result is empty, even with a constant in the equation. Use if with is_known to substitute 0.
1. The equation
A custom equation in my demo portal.

2. The pattern
if(is_known([properties.number]), [properties.number], 0)