OK I see what you are saying. I didn't realise you hadn't completed the final mission and that it would cost that much to get there.
I have tried to figure out why the rng never seems to go above a certain value when the "to" amount is very big but it has eluded me. It's exactly the same code for all ranges so I can only assume it is some kind of bug/restriction in the coding language I am using.
OK I think I have an idea that will mean all misions are profitable. Going to discuss with the community in discord. Maybe you could come and join in?
Thanks again for your support.