How to make salary with holiday and without holiday for same month

We have 50 employee in our organization, now i want to make salary for 40 employee without holiday, and 10 employee with the holiday.

how could we do this.

please help me to solve this