Added date picker to choose workday length. Fixed a bug in email data calculation