time between states metric

We should handle the case where ``user.metadata[label]`` is ``undefined`` (probably this shouldn't happen, but might occur, if for example, someone adds a metric after the initial deploy and users are mid-way through a menu).