30 days seems to be the standard limit across most brands.
There is also City's zoning bylaws/ordinance which define zoning between hotels and high rise residential and most laws are limited to around 28-30 days. Some jurisdiction also change the stay status form hotel/guest to landlord/tenant after 28-30 days.