Optimal capacity of new energy battery