Usually, an action block lasts around 24-48 hours, shadowban could last for up to a few weeks. If you’re mindful of your actions, Instagram will allow you to use their services after some time. However, if you continue the same actions which brought restrictions upon you, Instagram will continue blocking you. In the worst-case scenario, for continuous violation of Instagram terms and conditions, your account can be permanently blocked together with your IP address.