I wrote a blog piece about how to keep your bike locked up overnight, outside in San Francisco for years, [0] and the take-away is this: it averages $80 - $100 / month in repair costs, and you're much better off getting a bike rental membership (e.g. Citibike, Bay Wheels) for $15 / month.
BTW, good locks are really important.
[0] https://briancunnie.medium.com/how-to-lock-your-bike-overnig...