Added day off functionality to algorithm