Yeah. You must pay attention to your amount of money.
Prices do change over time, it applies to both selling milk and selling slaves.
If you want to avoid that problem, you can solve it easily by selling the Cup of Milk manually (Because Slavebar Auto-sell feature only sells it by parts).
Also, if I recall correctly you can check your income and taxes inside the book. Plus after waking up, you will receive a notification about incoming taxes