I am black when you buy me, red when you use me, when I turn white. You know it’s time to throw me away. What am I?

Image of Riddle Question

Can you solve this riddle without clicking that tempting answer button?