Salary Component that is the sum of all other salary components with a tag

Hi, I have a bunch of salary components, and each one may or may not have the tag “Taxable Earning”.

I am creating a salary component (statistical) whose value is the SUM of all salary components with the tag “Taxable Earning” ticked.

Is there a way to do this using the Formula box? Thanks in advance.