Logic block in Advanced Flow: mathematic calculation of Variable/Tag values

My solution with Temporary variable, which works: