Service Charge didn't count from previous amount

Hi,
I have a setting for service charge

image
and that sort like this

image

But, in my ticket, that service charge didn’t count from previous amount
that i need is (Ticket Total - Voucher Discount)*5% > it must be 46.760 but here is 58.450

image

Can you help me, please?

Try ticking the use plain sum option in your calculation type