Extra working day salary

I’m starting to implement HRMS using erp next.

Some employees work extra days per month.
As they work on a day from the Holiday list

How can i calculate this day in the salary slip. Taking in mind that all my salary components are not connected to Attendance.