Added patch by gacha for work_hours

Hi,
I added changes by @gacha to specify different working hours per day.

All tests are passing.

Thanks
Matteo