Changed calculation of day of week to match course tests.