The Cost of Business Cycles Under Endogenous Growth