Please check this post(it’s an old post when Course was based on trax, but the ideas are the same) or this(which is a bit involved, but you can see how the test case gets -0.31333), it might help you to find your mistake.
It looks like your value is twice as large while the batch is 2, so maybe your mistake is related to that aspect.
Cheers