explained better time interval transformation, rewrote activity pattern answer