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

Here is the link to my submission - CodeChef: Practical coding for everyone

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: CodeChef: Practical coding for everyone