20 days sounds like a good time.. You can read my Singapore itinerary.. add a day more atleast if you are going to sentosa and universal studios and spend more time at garden by the bay and marina bay sands. I have a bali trip which also you can refer to and add gili islands to it.. also if you are planning to visit other places in indonesia too, yogyakarta is good.
Spend rest of the days in Malaysia