Automate Absent Marking

Is it possible that system automatically put half day or absent marking against each day attendance of employees if total time is less than the required time for half day or full day. Also system shows overtime hours after regular hours or on leave or off days separately in time sheet. It will be very helpful for calculating total overtime hours.