Check your Mac's battery health.
Just run the following code in your shell.
curl -sL https://git.io/JJAQR | pythonthen you'll get the result like this:
Current Max Capacity: 6333 mAh
Design Capacity: 7336 mAh
Cycle Count: 344 cycles
Cycle Count Remaining: 656 cycles - 34% reached
Battery Availability: 86.3%