Calculating investment growth and time required