How to solve 0% available plugged in charging problem

Make and model of your laptop? An SKU would help two fold. Since when did the issue crop up? Did you leave the unit as is for a long while after you'd used it(like 6 months)?