Salary component of Special Allowance calculation issue

We wants to calculate Special Allowance on the basis of formula is - (base-(sum of all components))

please help how to calculate this in ERP Next?
Thanks.

@SwatiP Have you got any solution?

TIA.