I know this has been asked before but can't tell where.
These are what you need to keep in mind:
- The battery works using chemical reactions, these reactions cannot be
stopped but they can be slowed.
- A laptop with the battery left in will continue using that battery
- A battery left completely dead inside a laptop that is still trying
to draw power will kill the battery completely.
So here are the answers:
If you are storing the system for just weeks, simply take the battery out and leave both in a cool dry place away from direct light.
If you are storing the laptop for a few months, do the same, but take better care where you store the laptop and battery. Placing them in a case, or completely dry bags to prevent dust buildup.
If you are storing the laptop for years, the battery will probably be dead when you come back. But you'll also want to take the laptop apart and remove the small battery keeping the BIOS going. This will drain and expire and may corrode inside the laptop.