How to maximize profits and still show a loss.