Question Laptop battery capacity dropped from 48 017 mWh to 31 658 mWh

how long does it stay on?
you can try recalibrating the battery and reset the battery
if this doesn't help, acpi and chipset driver up to date?
also check how windows energy settings are set, if always at high power performance, the battery will not last long as well

if all this doesn't improve work time while using only battery, replace it

maybe helpful as well:
https://support.hp.com/us-en/document/ish_2268927-1713329-16