Dog Slice error

The calculation comes out as 2.4 but with the modulus % in the
expression, The answer come out as 12.