The number of credits is based on the number of nights you stay. You can use the credits on every day of your stay, including the day you check in and check out.
Some of the hypothetical examples have you checking in the afternoon. They have you using your first TS credits for dinner the night you check in. They have you using your last CS credit for lunch the day you check out.