My recommendation is to use HP Image Assistant to update BIOS and all drivers and suggested software, and make sure you install HP System Default Settings Softpaq, which sets a better power management profile... Also, be aware that having the screen brightness set to 100% will use significant more power than what is recommended, so adjust the brightness down if you can
To note, HP SUpport Assistant as a Battery Check tool that can tell if any of the cells have gone bad and can be used to replace the battery should that be the case
Finally, with updated BIOS, check the Battery Health Manager setting in the BIOS, which may be set to 'Maximize my battery Health'... in this case, battery is only charge to around 80% to prevent battery swelling... if you use the laptop as a laptop, not plugged in to power most of the time, you can change the setting to 'Let HP Manage Battery Charging', which will charge battery to full capacity in a safe mode
I work for HP. However, all opinions and comments are my own.