Working Days calculation between two dates

I have tried a simple formula to calculate total number of working day between two dates as shown below but not working .

@for(x := LAFromDate ; x < LAToDate; x := @Adjust(x;0;0;1;0;0;0);

T = @Weekday (LAFromDate);

@If(T !=6 | T !=7; count = count + 1; Count = Count +0);

@setfield("totaloffdays ";count)

.Can any one provide better solution for it -

Subject: Working Days calculation between two dates

Use @businessdays (See Help for more information)