How to get the time duration of cumulative temperature values

Please read Formatting code and log snippets in posts and provide your sample documents in a format that we can cut-n-paste.