Maximum value per day/week/month

Hello,

Can somebody here help me with this issue?

I have a sensor called “TotalSolarPositive”, that is the sum of 4 solar panels together. Now, I want to know the maximum amount of kWh produced per day, week, month. How can I do this?