Battery capacity and output power matching