is possible to set different detection periods?
One at night and one during the day when at work
What are you wanting different between these detection periods? Different detection zones? Sensitivity?
Yes it is possible, but not in the Settings > Event Recording > Schedule area. That provides for only the most basic schedule.
Instead, use the Shortcuts feature of the app. You can set up a shortcut to turn on detection at a certain time and days of the week and another shortcut to turn off detection similarly.