Battery life for electric bikes