Hello,
In the said attendance system, the customer's plan was to mark all those who are earlier than the reference time or absent as 0. They maintain a regular register too and that will show absent or present. At present the system was just meant to calculate the total time an employee is late every month. However this lack of facility in the software was pointed out by Mehul and other members at the meet and I thought of a way out. Once the company decides the man hours per month -> day -> number of hours per day, we can get the total minutes for the day which is a constant value. Therefore instead of marking the person absent as 0, the daily total hours/min value could be added for that day. Thus in the monthly summation, it will accurately cut the person's day salary as required. The exact value of daily hours/min will be custom decided by the company management.