Math Formula : 3 foumula in the same column IF

Hi

This is a simple workflow :

MATHS.xlsx

I want to create a column using this formula :

If T.E = HARD, New column = column TPS - 12

If T.E = MED, New column = column TPS - 16

If T.E = LOW, New column = column TPS - 18

My idea is to use row filter by TE and math formula and concatenate.

Is there a better solution?

Thanks

Br