Most auto stores have pretty good warranties on batteries and typically pro-rated.
I had one die after about six months, didn't even bother with trying to recharge.
I went back to the Advanced Auto store and the guy at the register just handed me a new one without even a receipt.
Once a battery has drained once, imho it really shouldn't used in the car again, it's never the same.
If it's out of warranty just keep it around the garage to power up something with an
inverter.