What is wrong - I suspect - is that the calculation isn't what you expect it to be:
149 * 0.8 * (1 - 24) does indeed return -2741.60
Why do you expect it to give you something else?
If I were to venture a guess, you should divide discount with 100 as it's likely a percent value. But that's a guess.