Hi! Can anyone clarify how increased damage applies to added damage of different types?

For example:

1)I have a weapon with +100 melee damage as a base quality, (AD1)

2) I have an affix with +50 melee physical damage (AD2)

3) I have a skill with tags “Melee”, ''physical" and ''strength" with base damage 2 and damage effectiveness 100 (DE)

4) Also i have melee increased damage (100%, ID1), increased physical damage (50%, ID2), strength 20 (Attr)

As i understood from reading guides, the formula is like:

```
(2+(AD1+AD2) x DE/100) x (1+ ID1/100 + ID2/100 + Attr x ScaleValue/100) x More Damage.
```

But what if I add an affix with + 20 Melee Cold Damage (AD3) and affix with increased cold damage 40% (ID3) and i do not use any damage conversions. I can not choose between two variants:

- Simply add AD3 to the sum of added damages:

```
(2+(AD1+AD2+AD3) x DE/100) x (1+ ID1/100 + ID2/100 + Attr x ScaleValue/100) x More Damage.
```

but cold damage would be affected by increased physical damage in that case.

2) As melee damage applies only to the damage of type the skill scales from (to physical damage),

so added cold damage affected by strength (as attribute increases the damage of a skill )and increased cold damage only, so the equation is like:

```
(
(2+(AD1+AD2) x DE/100) x (1+ ID1/100 + ID2/100 + Attr x ScaleValue/100) ## physical part
+ AD3 x DE/100 x (1 + Attr x ScaleValue/100 + ID3/100) ## cold part
) x More Damage.
```

What variant is correct or maybe no one?

Thank you in advance!