1. Draw 26 cards.
2a. Equal to or greater than $26? Stop.
2b. Less than $26? Draw 13 more cards.
3a. Equal to or greater than $1? Stop.
3b. Equal to or less than $0? Keep drawing until equal to $0, then stop.
I'm assuming I want to always stop at a non-negative value, else I'd pay the house on the way out. If ending with a negative value has no consequences beyond the game itself, then just stop at 2b after drawing.