One week of inactivity in either an inn or a city, gets you maximum (1.5 levels) of rested.
At least unless they changed the rate of accrual.