I’m no expert on Indonesian tax, but it seems that any stay beyond 183 days subjects you to PPh 21.
Out of curiosity I did a calculation based on a person earning USD 15,000 a year, which should cover a modest living cost in Bali. USA would tax the first $9,875 at 10% and the rest at 12%, for a...