how does 60000 * 2 = 4 minutes

I am using the code from Blink without delay to control a relay to turn on and off every 2 minutes.

I am seeting the interval using 60000 * 2

However that gives a cycle time of 4 minutes which confuses me.

Any help appretiated.

One cycle includes one on and one off. If relay change state every two minutes it gives a cycle time of four minutes. Everything is as it should.

What type of variable are you using for the interval and how are you setting its value ?
It should be a long or preferably an unsigned long.

As Bob pointed out, an unsigned long should be used for interval. Also, you may need to make it unambiguous to the compiler of the data type using the type suffix in non-int expressions, like:

   interval = 60000UL * 2UL;

They also help document what you're doing.

Gabriel_swe:
One cycle includes one on and one off. If relay change state every two minutes it gives a cycle time of four minutes. Everything is as it should.

Sorry when I say Cycle I ment 4 mins on 4 mins off. I tried to edit the question but the Forum said I had reached my post limit and had to wait.

I don't see 'your' code

Post your code.

Also, what board is it running on?