Store the old data to use latter

Hello there, I Need your help!
How can I store the readings of a particular variables at a particular time and then use that reading after a day to perform math things and display them on the dashboard?
Thanks in advance!

You can do this using context. See documentation.