Both battery age and number of charge and discharge are important when it comes to Li-ion batteries. Battery calendar degradation start on very first day and it gets worse if battery stays idle without any charge and discharge cycles. Charge and discharge also cause cycle degradation effects on batteries at the same time.
The best battery performance achieves by keeping battery state of charge( SOC) between 20% to 80%.
"Batteries of iPhone 14 models and earlier are designed to retain 80 percent of their original capacity at 500 complete charge cycles under ideal conditions.* Batteries of iPhone 15 models are designed to retain 80 percent of their original capacity at 1000 complete charge cycles under ideal conditions.*", Apple says.