Every country is different, and you need to do research into how things run where you're going. As a general rule of thumb, however, I would budget at least 90 minutes (60 to clear immigration, another 30 to get your bags and get through customs) unless you have some way to expedite the process.