Invalid Argument Error

I have a problem with the code, unfortunately I don’t quite know what I should do next. This is what the error message looks like


and here is the code
image