It is fine. It is explained here.
It would most likely be "Daniel will be fined if he hasn't returned his books."
or it can also be: "Daniel will be fined if he would not return his books."