The best way to keep the laptop’s battery in good health is to avoid overcharging it especially on days when there is a lot of workload. Another thing that ruin’s a battery’s health is using the laptop with the charger plugged in. While it might not show a significant effect on the battery’s health in the short term, it can damage it in the long-run.
As a result of this, you might have to replace your battery within the next 6 to 8 months primarily because you will notice that its charging capacity has decreased. Over a longer period of time, the battery may stop getting charged altogether.