Battery dies often after replacement

  • Hp 840 has been killing batteries. Replaced severally and it dies in a few months. The problem is gradual as it descharges it gets to a percentage like 40 and goes off, then 60, 70 100. When you disconnect from power it shuts. What's the problem and solution to it?
crwdns2934089:0crwdne2934089:0 crwdns2934093:0crwdne2934093:0

crwdns2934109:0crwdne2934109:0

crwdns2889612:0crwdne2889612:0 1
crwdns2934285:0crwdne2934285:0