Any help would be appreciated
I have the following formula:
( if( [start_time] = null, [duration] , if( [end_time] = null , [duration] , if( [end_time] > [start_time] , ([end_time] - [start_time] + 30 ) /60 , if( [start_time] > [end_time] , ( ( (Time( 23 , 59 , 59) - [Start_time] ) + 31) / 60 + (Hour( [end_time]) X 60 ) + Minute( [End_time] , 0 ) ) ) ) ) + ( ( ( [end_date] - [start_date] ) X 24 ) X 60 )
This determines the number of minutes between the fields. I now need to minus the non-working minutes that may fall in the range. This is a form formula and I am not able to create queries inside this application. The working hours are 9-5 Monday to Friday.
Any help would be appreciated, I am having a brain burp
Thanks
I have the following formula:
( if( [start_time] = null, [duration] , if( [end_time] = null , [duration] , if( [end_time] > [start_time] , ([end_time] - [start_time] + 30 ) /60 , if( [start_time] > [end_time] , ( ( (Time( 23 , 59 , 59) - [Start_time] ) + 31) / 60 + (Hour( [end_time]) X 60 ) + Minute( [End_time] , 0 ) ) ) ) ) + ( ( ( [end_date] - [start_date] ) X 24 ) X 60 )
This determines the number of minutes between the fields. I now need to minus the non-working minutes that may fall in the range. This is a form formula and I am not able to create queries inside this application. The working hours are 9-5 Monday to Friday.
Any help would be appreciated, I am having a brain burp
Thanks