I realise this, but looking back to the original posts requirements, it would appear all that is required is a substraction. Why go to all the trouble of MOD?anbu wrote:Modulus returns the remainder which is not mere subtraction.
Unless of course the figures given in the original post were coincidentally giving the same result with a subtraction.