Hello Everyone
I have a 4 dropdown and 2 datepicker with me
below is the start date, start hour (in hours item its from 0-24); start min (in min items it is only 00 and 30)

below is the End date, End hour (in hours item its from 0-24); End min (in min items it is only 00 and 30)

I have a text box Duration which show calculation in min
if I change start date to today and end date to tommorrow then this fails
but if I keep any same it works fine

formula:-
('drp EndHour'.Selected.Value*60+'drp EndMin'.Selected.Value)-
('drp StartHour'.Selected.Value*60+'drp StartMin'.Selected.Value)
What I want is:
if Start Date= 23/11/2022 || Start hour = 20 || Start Min = 30
End Date = 24/11/2022 || End hour = 01 || End Min = 30
then Duration should show ->300 min (ie., 5 hours)
I want to calculate duration even if date changes .
Plus by default its should be able to show 60 min (Which I should be able to change it)
If anyone knows how to do it please let me know, it will be very helpfull.