Social security salary component issue

Hello
I made a component Named Social Security in which I want to set a formula that
ba = Basic Salary, hsa = HousingAllowence Actual Days = custom field
(ba * 0.0975) + (hsa * 0.0975) if actual_days == 30 else
(ba * 0.0975) + (hsa * 0.0975) /30 * actual_days
but it showing this error “Syntax error in formula or condition: invalid syntax (, line 1)”
can you help us in it