Batteries are usually warranted for a certain number of cycles over their lifetime. A ‘cycle’ means a full discharge / recharge cycle. If you only partially drain the battery before recharging it this would count as a partial cycle. The number of cycles multiplied by the usable capacity gives the total energy that will be available to you over the life of the battery and that is warranted by the manufacturer. Good quality batteries will keep working well beyond their warranty.