Gives correct output in my code editor but shows WA on the website

Here is the link to my submission - Solution: 58561226 | CodeChef

I ran the code in my code editor and inputted the given sample input in the question, then gave some inputs made by me and it worked perfectly. But it shows WA on the website…

Hey @dravitgupta,

You missed adding the transcation charges to the withdrawal amount, in the ‘if’ condition.
That’s why your code shows a Wrong Answer verdict.
Submission: Solution: 58569937 | CodeChef