Great!
Great to see you posting, Reachy!
There's a lot to consider before deciding whether to stay in jail. Early in the game when there are still properties to bought, you need to get out of jail. But later when all the properties are bought, staying in jail won't hurt you as much as getting out and paying rent will. You can still buy, sell, and trade with other players while in jail.
These considerations are much more important than the $50 you pay to get out of jail. On average you make $170 each time you go around the board, and it takes you about five turns to move around the board once. So staying in jail costs you $170/5 = $34 per turn. The expected value of throwing the dice on the third turn hoping for a double is $50/6 = $8. So staying in jail hoping for a double on the third turn has an expected value of $34 + $34 + $34 - $8 = $94 to the bad.