https://rentvsbuycalculator.app/
Based on the nytimes version from 20 years ago but updated since then.
Actual rent vs. buy outcomes vary by location, but the general rule is that in most desirable urban areas, it's financially better to rent.