Hi,
This is possible in 'Lenvica HRMS 2.2.1'. Lenvica HRMS payroll is desigined in such a way that the user can define their own 'formulas/rules', when creating salary group.
Now coming to your point, When defining salary head 'Loss of Pay' in salary group, click the formula button. A window will be opened which is called as 'Formula' window. There you will find list of 'Variables, salary heads, attendance types, leave entitlement rights, functions'. You have to look into 'Attendance Types' list. 'Late In_Days_Count, Early Out_Days_Count' will give you the number of days, the employee came 'late' or left 'early' in the current salary period. By using this you can define your formula.
(Note: If you have the old version, pls get the latest update)
For your reference, i'll attach a sreenshot on defining this formula.
Thanks
Natrajan