Thanks Henrik, that works a treat.

Can you explain the maths behind the ** and 1601 ?