I would do some algebra in hidden/non-visible boxes in your power app based on the Start and End times selected.
You also need to identify when Night hours begin and when Night hours end. Like 6:00PM - 6:00AM are the night hours range.
So the first thing I would have it do is identify if the Start Time or End Time is within a night shift.
-If Start Time is in Night hours - Yes
-If End Time is in Night hours - Yes
The I would do a check on the results and take actions:
-If "No, No" just get total hours and put them in the SharePoint day hours column
-If "Yes, Yes" just get total hours and put them in the SharePoint night hours column
-If "Yes, No" get the difference between Start Time (which is at night) and 6:00AM which is End of Night hours and put in the Night hours column of SharePoint. Then get the difference between End Hours (which is during day) and 6:00AM and put in the Day hours column of SharePoint.
-If "No, Yes" get the difference between Start Time (which is during day) and 6:00PM which is Start of Night hours and put in the Day hours column of SharePoint. Then get the difference between End Hours (which is at night) and 6:00PM and put in the Nigh hours column of SharePoint.
Does that look like something you can do?