There are 2 solutions for this problem if your battery health is good:
1. Some computers have on their back a little black button where u can reset your battery by pressing it with a clip or a pencil for 3 seconds.
2. Another way to reset your battery is, while your computer is on, connected to the AC, remove the battery and put it back. This will reset your battery.