Quality investment timing by the startup and the established firm