Payroll processing with validate attendace

Hello,
In payroll entry, the “validate attendance” checkbox is not show the exact attendance count, and also salary is not deducted accordingly with the payment days. please suggest settings and if anything needful to do for payroll process with attendance and calculation of salary component with the “Working Days”.

@PratikB check this Unable to calculate payroll as per attendance - #2 by flexy2ky