Not working so I removed it.
Added my Total Value function it seems to be working correctly