This section details the algorithm used to calculate battery capacity loss due to cyclic aging, along with its standard deviation, for dynamic SOC and temperature profiles. The algorithm simulates the degradation of lithium iron phosphate (LFP) cells over a specified period based on the operational profile of a storage system. These are the main steps for dynamic cyclic aging calculation: (a) Initialization: The algorithm begins by setting initial value for the initial mean capacity loss (𝜇 𝑡 0 = 0) and creating arrays to store the mean capacity loss and its standard deviation for each time step. (b) Window-Based Calculations: At each Full Equivalent Cycle (FEC) window, the following steps are performed: