i have salary rule named BRUT his code is:(categories.POSTE + categories.PRIMP + categories.PRIMT) - ( categories.BASECNAS) for exemple is give me total = 49612,60
i want to use this amount for calculate a new rule named IRG his code: if ( 30.000 < the amount <= 120.000) :
result = (((salary-30.000)*30/100)+ 2500)
any idea how to make it please help me