How to optimize your battery