If tomorrow is sunday, today is saturday.
A week has 7 days " Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday ".
31 / 7 = 4 ( Remainder = 3)
So you can say that after multiples of 7 days, the day will repeat itself as saturday.
Hence after 28 days saturday will occur again.
So we calculate after the remainder (3) , the answer is Tuesday.
Simple Logic = And whatever the remainder obtained is, add that to the day.