The second check should be for 6 -- `wday` returns 0 for Sunday, 1 for Monday, etc. and 6 for Saturday. Otherwise this works fine.