My 2012 did that after 4 years. It would shut off around 15-35%. I had the battery replaced and its been fine, though it will likely start happening to me again in the next year or two. The iPhones do something similar too when their batteries get that old unless you turn on that performance throttle battery saving feature. Anyway, I'd replace the battery if I were you.