What is wrong with this atm code please help?

a,b=input().split()
x=float(a)
bal=float(b)
if x%5==0 and x<=bal:
tbal=bal-(x+0.50)
print("%.2f"%tbal)
else:
print("%.2f"%bal)

You need to have minimum balance of x+0.5