Calculates the time it takes for an investment to generate enough cash flow to cover its initial cost.