We study the interaction between epidemics and economic decisions in a model that has silent transmission of the virus. We find that rational behaviour strongly diminishes the severity of the epidemic but worsens the economic recession. We also find that the detection and isolation of not only symptomatic individuals but also those who are infected and asymptomatic or mildly symptomatic can reduce the severity of the recession caused by the pandemic.