I found this very good refinance calculator from zillow.

https://www.zillow.com/mortgage-calculator/refinance-calculator/

Sometimes you may wonder how much you gain/lose money doing a refi, well, this tool will help you. Even if you could have lower monthly payment, that doesn’t necessarily mean a good refi. The chart from this tool will show you the math.