Hi @kharina :
Do you want to add a "half day" option to this app?
I suggest you add the options of ‘AM’ and ‘PM’ for both the start date and the end date, so that you can distinguish the "half day".I'v made a test for your reference:
1\Add a Radio control(Radio-Start) for DatePicker1_2 and set it's items property to:
["AM","PM"]
Layout
Layout.Horizontal
2\Add a Radio control(Radio-End) for DatePicker1_3 and set it's items property to:
["AM","PM"]
Layout
Layout.Horizontal
3\Set the label control's Text property to:
DateDiff(
Switch(
'Radio-Start'.Selected.Value,
"PM",
DateAdd(DatePicker1_2.SelectedDate,12, Hours),
DatePicker1_2.SelectedDate
),
Switch(
'Radio-End'.Selected.Value,
"PM",
DateAdd(DatePicker1_3.SelectedDate,12,Hours),
DatePicker1_3.SelectedDate
),
Hours
) / 24

Best Regards,
Bof