Product Variation Percentage Modification

Hello, is there a way I can make the second product variation to calculate percentage of the first product variation and not to the base?

For example, I have a base price of 2, and variations

1. Medium - modification 0

2. Large - modification +5

3. XLarge - modification +6

and second variation

1. White - modification 0

2. black - modification 0

3. Red - modification +10%

If I chose product Large / Red it calculates: 2+5+ (10% of 2)= 7.2 and not 2+5+10% = 7.7.

It there an addon to make it like this or an option?

Thank you!