Excluding weekends in FileMaker

I'm trying to construct a production planning system. I have a given number of produktion days but I need to exclude the weekends. How would such a script look like?
Support for SeedCode
http://205.186.131.92/support/