Why extending working hours could land you in court