Workpattern provides an API for performing date calculations that take into account working and resting periods.