I believe the battery falls under it's own warranty, usually prorated & not under the Mazda manufacturer warranty. I've had this issue on other vehicles. One went bad at around 6 months & we got a full replacement. Another was several years old & we were presented with a prorated replacement from the battery manufacturer through the car dealer.