To find out how much money Charlie had left after buying the bike, you need to subtract the cost of the bike from the amount he earned pet sitting.
Charlie earned: $585.80
Cost of the bike: $178.79
Now, perform the subtraction:
\[ 585.80 - 178.79 = 407.01 \]
Therefore, the amount of money Charlie had left after buying the bike is:
D. $407.01