Roll and bank before you bust past ten
You start with a running total of . Each turn you may stop and bank your total, or roll a fair die and add the result to your total. But if a roll pushes your total above , you bust and get nothing. You play to maximize the expected amount you bank.
What is the optimal stopping rule, and what is the expected value of the game?