modified transaction calculations to not negate the the amounts