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
https://www.seedcode.com/support/