Sort:  

it's just some basic math for gambling , hope you enjoyed it :)