difference between start shift and end shift
1- we created shift system
if we have shift 1 from 22:00 to 08:00
shift 2 from 08:00 to 17:00
shift 3 from 17:00 to 02:00
if we assign days
shift 1 1-jan-2019 22:00 to 2-jan-2019 08:00
shift 2 2-jan-2019 08:00 to 2-jan-2019 17:00
shift 3 2-jan-2019 17:00 to 3-jan-2019 02:00
how i calculate that end shift on the same day or in the next day ?