Now I need to do some calculation based on the date, meaning that on Jan 2nd e.g. plus 2, Jan 3rd plus 5, and so on. I have a formula/table which calculates what to add based on the date.
Background: The daily values are the cumulated production of my PV panels. I have as well the predication based on the simulation software as daily average per month. Now I would like to have for each day the cumulated difference between the actual production and the prediction for the current year until the current day.