Excel tracks the day of the week internally as a specific number for each of the seven days.

For example, MOD(10,3) = 1.

The result of MOD carries the same sign as the divisor.

Excel formula: Get next day of week

Excel MOD function