The following spreadsheet extends the previous loss rebate theorem Excel spreadsheet (see this post) to include the risk of ruin (ROR):
Loss_Rebate_Theorem_Full_Solution_ROR
I've also added a table giving the house edge and standard deviation for some common games. The ROR percentage assumes continuous reinvestment.