Social Security Contribution

I would like to request to guide how to user formula for payroll processing.
Let’s say, our Social Security Contribution
Wages up to 300,000 will deduct 3%
Wages more than 300,000 will deduct, fixed amount 9000

Update: I got solution now, thanks

You can use formula

9000 if wages>300000 else wages*0.03

I’m very new to ERPNext