Bug in delay function

As I stated I just bought an Arduino. I'm coding after a few years and mixed C++ with C lol.

The expression syntax is the same for both languages, as is operator precedence.