Updated day-of-week calculation to match the firmware (Monday = 0)