How long do users try to learn the UI, before giving up?

Is there some research data about that?

I'm referring mainly to websites (such as news and magazine ones), neither Web Apps nor public-specific applications. It's for ordinary people.