Time between 2 dates minus weekends

Hi,

I have a little problem how to throw out weekends from time created between two dates. I’m using 2 dates objects ([start time] , [end time]).
I want to create condition that check if is weekend between start and end date total time will be reduced by (saturday and sunday =172800 seconds)

I used this formula to change date for time in seconds:

=DaysBetween([Start Time];[End Time])*86400
+
(ToNumber(FormatDate([End Time];"HH"))*3600 +
ToNumber(Left(FormatDate([End Time];"mm:ss");2))*60+
ToNumber(FormatDate([End Time];"ss")))
-(ToNumber(FormatDate([Start Time];"HH"))*3600 +
ToNumber(Left(FormatDate([Start Time];"mm:ss");2))*60+
ToNumber(FormatDate([Start Time];"ss")))

Anyone?, Thx


Lucq :poland: (BOB member since 2008-07-17)

Try looking at this thread:


APB :uk: (BOB member since 2006-12-04)