Fixed off-by-one error for weekly shifts