Why is it wrong

import java.util.;
import java.lang.
;
import java.io.*;

class Codechef
{
	public static void main (String[] args)
	{
        Scanner sc = new Scanner(System.in);
		Double withdrawl = sc.nextDouble();
		Double balance = sc.nextDouble();
		
		if(withdrawl%5==0 && withdrawl<balance){
		    balance = balance-(withdrawl+0.50);
		    System.out.println(balance);
		}else{
		    System.out.println(balance);
		}
	}
}

The bank balance cannot go negative

See this case-

Input
120 120.10
Your Output
-0.4000000000000057
Expected Output
120.10

You need to make sure that bank balance is not negative after withdrawl.