Number of workdays between two dates
It is pretty simple to get number of work days between two dates. For example we can get the number of workdays in this month.
Please note that this doesn’t include any check for holidays, you’ll need to figure that yourself (if you have need for that at all).
For more info see Array#select and Date#wday methods.