Simple, if the room can be rented out in his absence, he can pay less. If he wants to keep his things in his room, he pays full.

Normally one pays monthly rent no matter how many days hours or minutes one actually occupies the room during this month.