clear dStart = {2025/02/01} dEnd = {2025/02/28} dTest = dStart nCount = 0 do while dTest <= dEnd if dow(dTest) <> 1 and dow(dTest) <> 7 nCount ++ ?dtest,cdow(dTest) //Commnet out this line if you only want a count endif dTest+=1 enddo ? ? 'Number of weekdays between '+chr(13)+chr(10)+cdow(dStart)+' '+dStart+ ' and '+cdow(dEnd)+' '+dEnd +' is '+nCount