We're going to collect the GDP of the user's country from the World Bank API. We need to use that amount, the % the user gives us, and the timeframe the user gives us, to calculate the total amount of money we have to work with.
Basically,
GDP percent yearsUntilLaunch
so a GDP of $10,000 with 5% devoted to the project over 50 years would be:
10000 .05 50 = $25,000
We're going to collect the GDP of the user's country from the World Bank API. We need to use that amount, the % the user gives us, and the timeframe the user gives us, to calculate the total amount of money we have to work with.
Basically,
GDP percent yearsUntilLaunch
so a GDP of $10,000 with 5% devoted to the project over 50 years would be: 10000 .05 50 = $25,000