Added ST calculation method and tests.
Refactored to functional code.
Gave the chart dialog more width.
Added time spent graph, made calcs accumulated.