URoch vs Stony Brook

Hi, I plan on majoring in computer science, and I’m not sure whether to choose the University of Rochester or Stony Brook University. Generally, University of Rochester is more reputable, however, I would need to pay around 60k per year, in contrast to SBU’s 20k tuition. Is URochester worth the extra money?

Where would the difference in cost come from? Can you afford even Stony Brook without loans other than the standard federal student loans? https://www.finaid.org/calculators/awardletteradvanced.phtml

The main difference in cost comes from the price of each school. URoch has a base price of almost 60k, where as SBU has a base price of 10K. I can afford both schools, however, I’m just not sure if URoch is worth the extra 40k per year.