Hi,
They both compiles here but gave the same error before I had all the variables properly declared:
Name:  Undeclared_variables.jpg
Views: 3131
Size:  47.6 KB
Here, I've commented out the declaration of MINUTES and SCL and it gives pretty much the same error as you get. When I uncomment those declarations it compiles just fine.

So, double check your variable declarations.

/Henrik.