I'll contribute the following snippet. So long as the very first and last months are fully included within the D5 workfile range, the following expression will generate the number of business days in the current month:
Code: Select all
@maxsby(@periodtodate(1, @month), @month, @year)