Ideally, you should let it 48 hours or longer, but you should at the very least leave it overnight if at all possible. While some phones will not be revived no matter how long they are submerged in rice, the longer they are submerged in rice, the better. Before reassembling the phone, thoroughly inspect it to guarantee that no grains of rice have remained within.