added ability to exclude certain hours from calculation