Moved all business logic into controller. Using QDateTime for work days