How do you calculate mod?
Before performing the modulo operation, start by choosing the initial number. The divisor can be chosen. Take one number and divide it by the other, rounding it down to 10. The quotient is the number of the divisor. This number should be subtracted from your initial number.