By sundown the next day if I recall my Jewish friends growing up. That is why they sit Shiva after burial.
Found this:
“Traditional observance of shivah requires that mourners stay at the home of the deceased, sit on low stools or on the floor, cover all mirrors, and put on no new garments or leather footwear; they may not cut their hair or shave, may take no part in ordinary business, and may not engage in marital relations.”