a clean implementation of business hours calculations