Hi,
Are you sure about this part of the formula?
E24/(SUM(E17*$B$29))-D25

I am not able to understand why that sum is required there...