Please can anyone help me out why my solution is not getting accepted?

total price=price*quantity
if quantity>1000{net price=total price - 10% of total price}
else {net price = total price}