Functional but ugly UI. What value does a good looking UI add? [duplicate]

We keep talking about how a product needs to be functional more than looking good.

But what impact does an ugly UI have on it's users if the product works really well?

How or when should you convince your decision makers we need to refresh an app's appearance?