To set the max no of days allowed for a staff and max no of previous dates for regularization follow the path given below.
Settings ---> HR ---> Staff Attendance Approval Settings ---> Select the location of the Branch ---> Click on the Text box under 1) Max no of previous dates. 2) Max no of attendance regularizations ---> Enter the number ---> Click on Save
[Max Days: If you set Max days to 2 for a branch then Attendance Timing Modification at Principal can be allowed from previous 2 days to current date]