Battery output calculation method