calculate difference of 3 recurring columns

Hello,
I have following problem,
6 column with full of forces. the seventh column is variant with recurring parameters. For example TSP, HNV1 and HNV2. And I always wants the difference of HNV1-TSP and HNV-TSP.
I have learned that in this case I could use Math Formula (Multi Column). But

Now step two. little bit demanding. The column eight shows different settings.
For example setting ABC has TSP, HNV1, HNV2 and the following columns of forces and the DEF hast TSP, HNV1 and HNV2 + forces. And I would like to have the Differences of all settings.
Should I use a loop with a table with rows ABC than DEF and so on?
Thanks in advance!

It would be helpful if you could share some sample data.

Example.csv (505 Bytes)