When you disconnect your laptop from the power outlet and use it on battery power, the chemical energy stored in the battery is converted back into electrical energy and used to power the laptop's components. This process is called discharging.
The amount of time that a laptop battery can power your laptop depends on the capacity of the battery and the power consumption of the laptop's components. The capacity of a battery is measured in milliamp-hours (mAh), and the power consumption of a laptop's components is measured in watts (W).
For example, if your laptop battery has a capacity of 5,000 mAh and your laptop's components consume 10 W, then your laptop battery will be able to power your laptop for 5,000 mAh / 10 W = 5 hours.
It is important to note that laptop batteries are not designed to be completely discharged. When a laptop battery is completely discharged, it can be damaged and may not be able to hold a charge anymore. Therefore, it is important to connect your laptop to a power outlet before the battery is completely discharged.
Laptop batteries also have a limited lifespan. The lifespan of a laptop battery is determined by the number of charge/discharge cycles that it can undergo. A charge/discharge cycle is one complete process of charging the battery and then discharging it. The average lifespan of a laptop battery is 300-500 charge/discharge cycles.
After a laptop battery has reached its lifespan, it will need to be replaced. You can purchase a replacement laptop battery from the manufacturer of your laptop or from a third-party retailer.
In conclusion, laptop batteries are not designed to kill you. They are designed to provide electrical power to your laptop. However, it is important to use laptop batteries safely and to avoid completely discharging them.