Attendance working hours and break times

Hello,
I am trying to customize the attendance sheet. How can I calculate and visualize the working hours and how can I set the break times per working hours?
for example at 6 working hours must be taken 30 minutes break, at 9 hours must be taken 45 minutes break

Thanks in advance!