Analysis for calculating difference of variable between a specific time period.

Analysis for calculating difference of variable between a specific time period.

Hello, 

I am new to coding and need help with analysis. Is there an analysis example or could someone write one that calculates the difference between a variable over the last hour, day, or any other time period? 

Example: Cyldiner fill calculation: 
at 10:00AM value was 5.5ft
at 11:00AM value was 5.7ft
at 12:00PM value was 6.4ft

I would like to be able to subtract the 12 PM value from the 10 AM value to calculate the gain in the silo over that two-hour time period, (or any given time period). 

Appreciate anyone's help!