Historical calculation with template sensors

I have written in configuration.yaml a new sensor calculating a+b+c. This works an is fine. Calculation of this value is only or data since I wrote this formula. Value a, b, c are existing since month. Is their a chance to calculate the formula for all data since a, b and c are existing?

Not directly in HA. You would need to dive into SQL.