The next day — the day of the court appearance — Richard checks on his friend and finds Charlie has taken all of the pills in the bottle.
On the morning before his court appearance, Richard stopped by his friend's place and learned that Charlie had taken all of the pills from the bottle.