New function to plot the time to buy based on when the cookie arrives