The NETWORKDAYS function seems to assume that Saturdays and Sundays are not work days.

Is there something similar that can be used if Thursdays and Fridays are the days off, as in the Arab world, or if Saturdays are workdays?