Burping babies

How long after you feed them do you burp them? I imagine 30 minutes so it gives them time to digest but I'm not sure.