The preceding formula uses MOD, which returns the modulus or remainder of a division operation. A modulus of 0 means that there is no remainder or that the numerator was evenly divisible by the denominator. We store these remainders in the variables __Div4, __Div100, and __Div400. We can then use these values to determine whether the year is a leap year by using a simple SWITCH statement that defines the rules.