Enter and leave the company need to record by ID card. If you were late for 1 hours, you should apply a rest-time for the late. If you work overtime, you can only exchange to the equal rest-time. But if you do not run out of the rest-time in this year, the rest-time will be reset to ZERO in next year.