Epidemics and macroeconomic outcomes: Social distancing intensity and duration