[Solved] How to calculate Service charge on balance amount i-e after bill discounted

PSum is alredy non discounted amount. PreSum is pre tax servicing amount so it is probably discount amount for your case. Now I need to understand why you’re summing these and want to subtract discount back. Did you tried what PSum and PreSum values returns?