How to calculate Ah balance on my battery?

You might want to change the method of integration to trapezoidal: