Lithium-ion batteries is almost everywhere nowadays, in your phone, in your laptop. According to the link below,
The typical estimated life of a Lithium-Ion battery is about two to three years or 300 to 500 charge cycles, whichever occurs first. One charge cycle is a period of use from fully charged, to fully discharged, and fully recharged again.
Please notice that 300 to 500 charge cycles or 2 to 3 years are not the maximum life of a lithium-ion battery. There are many factors which could prolong the life of your lithium-ion batteries. (I have a Compaq laptop bought in 2005, right now the battery is still working, though I did not pay a particular attention to how to prolong its battery life. Depending on the makers, my Lenovo laptop’s battery died in 3 years).
If you don’t use your lithium-battery, a shelf life, which could be called, will be at least 10-12 years. (I have recorded the daily voltage drop of a lithium-ion for more than 10 years, there is not much drop from the initial voltage).
How to prolong the life of lithium-ion batteries? There are links below.
https://batteryuniversity.com/article/bu-808-how-to-prolong-lithium-based-batteries
https://batteryuniversity.com/article/bu-415-how-to-charge-and-when-to-charge
https://batteryuniversity.com/article/bu-706-summary-of-dos-and-donts
The following conclusions are based on links above: