I have an array of increasing numbers representing energy meter values, either weekly, monthly, or yearly:
[18240,18290,18340,18400,18470,18510,18600]
Desired output is the difference between the next element e.g.:
[50,50,60,70,40,90]
Here how the data looks like Excel: Example Data: