Customs is a major wildcard in Miami if you have a checked bag. I'd say add at least a half hour if you need to wait for luggage. Really any inbound international connection through Miami should have at least a 90 minute layover or you're gonna be cutting it close. Good luck!