BusinessDays working error

dear friends,i have two field.

the first named “dStart” type Date/time.

the second named “dEnd” type Date/time.

in the same form i use COMPUTE VALUE.

in the COMPUTE VALUE, i use formula

@Text(@BusinessDays(dStart;dEnd; 1 : 7))

my trouble is :

if the difference day between “dStart” and “dEnd” to far then it return error

ex dStart = Sabtu 30/04/2005

dEnd = Saturday 30/04/2080

it return -1000

can it return a right without minus?

thanx for answering my question

Subject: RE: BusinessDays working error

I’m curious to know what kind of projects you are planning that you need to know the exact number of business days in 75 years. Does this represent your timeline for fulfilling customer requests?

Anyway, you can work around this problem by breaking the date range into two parts and using @BusinessDays twice.

_dif := (_end-_start) / (246060);

@If(_dif > 15000; @Do(_start := _start : @Adjust(_start ; 0; 0; @Integer(_dif/2); 0; 0; 0); _end := @Adjust(_start[2]; 0; 0; 1; 0; 0; 0) : _end); “”);

@Sum(@BusinessDays(_start; _end));