Total Leaves/Total Attendance in Salary Slip

Hi All,

I need something like: Total leaves in salary slip
This is because there is a benefit that is calculated based on attendance, and not given when an employee is taking Sick Leave.

Is this already able to be done?

Thanks!