Menu

1 / 2

How I Built a Rent-Cap Calculator That Handles California, Washington and Oregon Rules

DEV Community: javascript·Asghar Ali·13 days ago
#gprkzYFM
#devtojavascript#devto#dev#rent#state
Long article (791 words) — no AI summary yet.
Reading 0:00
15s threshold

I build small, free, client-side calculators for US landlords and renters. The hardest one so far is not the maths — it is the rules. A rent increase that is legal in one state can be illegal in another, and in California the answer changes by county. Here is how the calculator handles that, and the design decisions that fell out of it.

The problem: one percentage does not fit

A rent-increase percentage is easy: new rent minus old rent, divided by old rent. A $1,800 rent going to $1,950 is $150, or 8.33%. The hard part is whether 8.33% is allowed. That depends on the state, the county, the date the increase starts, and in Washington, how long the tenancy has run.

California groups its counties. For increases starting 1 August 2026 to 31 July 2027, the caps are: Los Angeles area 8.7%, Riverside 8.1%, San Diego 8.2%, San Francisco 8.8%, and all other counties 8.6%.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.