.before to respect work hours

@bokmann .after was fixed recently to respect work hours. 
Doing the same in this PR for .before
This should be the last of my fixes for now, promise :-)