When is the Right Time to Raise Capital?