The issue has to do with workinghours, is it a name of a textbox or name of a collection?
Collect(workinghours,{Name:NameTextInput.Text,Hour: workinghours.Text})
So try:
Collect(workinghoursTable,{Name:NameTextInput.Text,Hour: workinghours.Text})
if workinghours is not a textbox, replace it with the name of the textbox on your form
------------
If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.