As a DEVELOPER, I want to calculate the percentage change in a user’s carbon score over time so that they can track improvements or increases in their carbon footprint.
A/C:
[ ] Write a function that calculates the percent change in carbon score based on historical data (stored in PastScores within EnvironmentalImpactInfo).
[ ] Store the calculated percent change in the EnvironmentalImpactInfo table.
[ ] Ensure the percentage change is updated each time new transactions are added.
[ ] Test the accuracy of the percent change calculation across different timeframes.
As a DEVELOPER, I want to calculate the percentage change in a user’s carbon score over time so that they can track improvements or increases in their carbon footprint.
A/C: