Battery life is improved by not charging to 100% or discharging to zero except occasionally or in emergencies. Musk himself says that charging to a max of 80% and never going below 30% prolongs battery life. Tesla has software which discourages overcharging and over discharging.
|Tesla Model S/X Mileage vs remaining battery capacity|
[Read more here]