I have read your attachment but I am finding it difficult exactly what task you need. I am thinking that you need some sort of spreadsheet that you can plug in some numbers and the formulas would work out based on your prime bet amount and odds to work out what the back/lay saver bet should be set at so that you cover your losses in case you dont win or limit those losses.
If you could explain a little more detail on the task you require or what you would like as the final outcome, then it will be more clear.