workStats is a calculator for various statistics, given a list of time intervals with timestamps.