The ideal way is charging the laptop up to about 80-percent of its battery. Then, unplug it and use it until the battery is down to around 40-percent. After that, charge the device again. If you can't do that, at least remember to unplug the laptop once the battery is full.