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://archive.seedcode.com/support/
http://archive.seedcode.com/support/viewtopic.php?f=12&t=382