How to assain two type salary calculation in erpnext salary structure

I want to calculate some employee salary with working days, and some employee with total month days(including holidays).

So how to make a salary structure with two type condition.

Please help me to solve this problem.