Currently, citizens from 93 countries can get Electronic Visa on Arrival (e-VOA) to visit Indonesia with the purposes of tourism, governmental duties, business talks, goods purchasing, participation in meetings, or transit.
Single-entry e-VOA is valid for 30 days and can be extended one time for 30 days online through the Indonesia Immigration official website or directly in the Immigration Office. So you can stay in Indonesia for a maximum of 60 days in total, after that you must leave the country.