Battery capacity to calculate charging power