I may be misunderstanding your requirements, but are you sure the last 4 hours (worked on Saturday) should not be split between regular and overtime hours? Your criteria for overtime is when an employee works more than 8 hours in a day or more than 44 hours in a week. If we look at the hours worked from Monday to Friday (8+8+8+10+8) that's 42 hours. On Saturday, the first two hours are regular time, but then the employee has worked 44 hours in that week, so the next two hours, and any time after that, is overtime.