I don't know if I'm bugged but I decided to play again since day 1 and I still made mistakes a few times and ended up with 650 coins in sand box mode
It says at the top that it totals your best score from every day. If you replay a day and get a lower profit, it'll keep the higher one.