There is a feature like/similar to this already. Next to the Store button, there is a button that looks like a “file” drop down menu. If you tap that button, it suggests what upgrades, research, or other improvements you can make with the resources you have available.