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 following morning, before his court date, Richard visits his friend and learns that Charlie has taken every last pill from the container.