Salary Structure Formula Issue

Hii All,

I have two bench

first:-
erpnext 11.1.67
frappe 11.1.61
In this instance i am adding formula in salary structure:

(175 if(gross_pay > 7500 and gross_pay < 10000 ) else 0)+(300 if( gross_pay > 10000 and getdate(start_date).month == 02) else 0)+(200 if( gross_pay > 10000 and getdate(start_date).month != 02) else 0)

The above formula working totally fine but when i am using the same formula in another instance
erpnext 11.1.72
frappe 11.1.64
getting error like

Traceback (most recent call last):\n File “/home/erpnext/YTPL_ERPNEXT/frappe-bench/apps/erpnext/erpnext/hr/doctype/salary_slip/salary_slip.py”, line 353, in eval_condition_and_formula\n amount = flt(frappe.safe_eval(formula, self.whitelisted_globals, data), d.precision(“amount”))\n File “/home/erpnext/YTPL_ERPNEXT/frappe-bench/apps/frappe/frappe/init.py”, line 1521, in safe_eval\n return eval(code, eval_globals, eval_locals)\n File “”, line 1\n (175 if(gross_pay > 7500 and gross_pay < 10000 ) else 0),(300 if( gross_pay > 10000 and getdate(start_date).month == 02) else 0),(200 if( gross_pay > 10000 and getdate(start_date).month != 02) else 0)\n

frappe.exceptions.ValidationError: Syntax error in formula or condition: invalid token (, line 1)

I am really not able to understand what should i change so that it will be in working condition

Thanks in advance.

I found in the error message the comma in the formula don’t know why ??
I think the parenthes is not correct.

Sir, Can you please guide me what would be the right way to handle this issue?