If is it original Toyota Battery, Japan Made, life will be 2-3 years,
for other brands, like AC DELCO, it will be 12 - 15 months.

if your car still covered under warranty, then you can replace it for free, for the first time, for the second time only you have to pay 25% of it's cost, for the third time 50% . . . . that's only if your vehicle under warranty