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