Please navigate to Payroll >> Advance Settings >> Components >> Variable >> Create and define the variable component as per your company policy.
Once the component is created, Please add this component to the salary structure by navigating to the Salary structure tab >> Create salary structure >> Select the structure you want this variable component in. Click on edit and add the variable component in the salary structure.
Read Here...