1 Motivation

With increasing survival to old age, the share of life time spent in retirement has increased over the last decades. While many studies investigate the transition from work to retirement, the time spent in retirement is less investigated. As recently argued in Sprod et al. (2017, p. 10), “The transition from a working lifestyle to one of retirement involves a reorganization of daily activities and the choice of activities has health consequences.” Hence, in light of productive and healthy aging it is important to gain a better understanding of how people spend their time in retirement.

In this paper we propose an optimal control model of productive and healthy aging in retirement. We focus our analysis on the active retirement phase of a university professor. We assume that our individual derives utility from scientific work (including research, attending conferences, etc.) and social engagement but suffers a utility loss from physical activity. These activities in turn determine the evolution of the knowledge and health stock. We assume that a higher knowledge stock left behind is positively valued by our individual and health is positively related to survival. Hence, an optimal tradeoff between time allocated to research and physical activity will exist. We investigate the optimal time allocation in retirement dependent on various specifications of preferences and technologies of knowledge and health accumulation.

2 The model

We consider a retired scholar at age x with a fixed but guaranteed income until death. The consumption path and the wealth profile are assumed to have been optimally chosen during the working period. Hence, we focus on the optimal allocation of the available time in retirement among the three main activities: cognitive activity (\(\textsf {t}_c\)), physical activity (\(\textsf {t}_h\)), and social activity (\(\textsf {t}_s\)). Cognitive activity comprises the time devoted to producing papers, going to working meetings, attending conferences, workshops, and seminars. Physical activity accounts for the time spent on the gym, hiking in the mountains, etc; while the social activity represents the leisure time going to concerts, watching football, etc. The sum of all the available time at time t is

$$\begin{aligned} \textsf {t}_c(t)+\textsf {t}_h(t)+\textsf {t}_s(t) =T, \end{aligned}$$
(1)

where T denotes the maximum number of available minutes per day.Footnote 1 We assume that the time spent on various activities are mutually exclusive; i.e. activities cannot be conducted in parallel to each other.

The remaining length of life is assumed to be deterministic and depends on the stock of health deficits (D) that in turn depends on the time spent on physical activity. To account for the evolution of health deficits we follow the work by Dalgaard and Strulik (2014). In particular, health deficits accumulate annually at a rate \(\mu (D-a)\) until the maximum number of health deficits \(\overline{D}\) is reached. The rate of accumulation of health deficits can be slowed down through physical activity (Dalgaard and Strulik 2017; Schuenemann et al. 2017; Strulik 2018) as follows

$$\begin{aligned} \dot{D}=\mu \left( D-A\textsf {t}_h^{\eta }-a\right) . \end{aligned}$$
(2)

Parameter \(\mu >0\) is the natural force of aging, \(a>0\) reflects the exogenous rate of improvement in the accumulation of health deficits, and \(A>0\) and \(\eta \in (0,1)\) are parameters affecting the impact of physical activity on the accumulation of health deficits. Parameter \(\eta \) is a positive constant smaller than one in order to account for the fact that the impact of physical activity on accumulation of health deficits is subject to decreasing returns to scale.

To represent the daily activity of a scientist, we assume our scholar is interested in working with doctoral students and colleagues in order to contribute to the stock of knowledge, which is denoted by K. The stock of knowledge at age t is defined as the total number of papers written until age t, K(t). To produce papers, the scholar needs to devote time to cognitive activity. The number of papers published at each time is positively related to the exiting stock of knowledge of our scholar. Thus, the number of papers published at time t is given byFootnote 2

$$\begin{aligned} \dot{K}=\theta \text {t}_c^\gamma K^\beta , \end{aligned}$$
(3)

where \(\gamma \in (0,1)\) and \(\beta \in (0,1)\) are, respectively, the returns of the time devoted to cognitive activities and of knowledge, and \(\theta >0\) is a constant parameter representing the overall productivity of the scholar. Solving (3) recursively yields that the stock of knowledge at time t is:

$$\begin{aligned} K(t)=\left( K(x)^{1-\beta }+\int _x^t (1-\beta )\theta (\textsf {t}_c(s))^\gamma ds\right) ^\frac{1}{1-\beta }. \end{aligned}$$
(4)

Moreover our scientist is aware that the stock of knowledge will improve the wellbeing of future generations. Thus, the stock of knowledge left to future generations, \(K(\alpha )\), is assumed to provide utility to the scholar as captured by a salvage-value function \(S(K(\alpha ))=\kappa K(\alpha )\), similar to Feichtinger et al. (2019).

The lifetime utility is given by

$$\begin{aligned} \int _x^{\alpha } e^{-\rho (t-x)}U(\textsf {t}_s,\textsf {t}_c,\textsf {t}_h)dt+e^{-\rho (\alpha -x)}S(K(\alpha )) \end{aligned}$$
(5)

where \(\rho \) is the subjective discount factor and \(U(\textsf {t}_s,\textsf {t}_c,\textsf {t}_h)\) is the instantaneous utility from the different activities. For convenience, we assume the following functional form for the instantaneous utility:

$$\begin{aligned} U(\textsf {t}_s,\textsf {t}_c,\textsf {t}_h)=\phi _s\log \textsf {t}_s+\phi _c\log \textsf {t}_c-\phi _h\frac{\textsf {t}_h^{1+\omega }}{1+\omega }, \end{aligned}$$
(6)

where parameters \(\phi _s,\,\phi _c,\,\phi _h\) are the weights of each instantaneous (dis)utility from each activity on U. We use logarithmic utility functions on \(\textsf {t}_s\) and \(\textsf {t}_c\) and a convex function on the disutility of health activities in order to guarantee the existence and uniqueness of an optimal solution.

3 Optimal solution

Our retired scholar chooses the time devoted to cognitive activities, \(\textsf {t}_c\), physical activities, \(\textsf {t}_h\), and social activities, \(\textsf {t}_s\), that maximize the lifetime utility function (5) subject to the time constraint (1), the dynamics of accumulation of health deficits (2), the dynamics of the accumulation of knowledge (3), the initial stock of knowledge, \(K(x)=K_x\), the initial stock of health deficits, \(D(x)=D_x\), and the final boundary condition \(D(\alpha )=\overline{D}\). In “Appendix A” we derive the necessary conditions for this problem using the calculus of variations (Portryagin’s Maximum Principle). We solve the following optimal control problem:

$$\begin{aligned} \max _{\textsf {t}_s(\cdot ),\textsf {t}_c(\cdot ),\textsf {t}_h(\cdot )} \int _x^\alpha e^{-\rho (t-x)}U(\textsf {t}_s(t),\textsf {t}_c(t),\textsf {t}_h(t))dt+e^{-\rho (\alpha -x)}S(K(\alpha )) \end{aligned}$$
(7a)
$$\begin{aligned} \text {s.t.}\,&\dot{D}(t)=\mu \left( D(t)-A\textsf {t}_h(t)^\eta -a\right) \end{aligned}$$
(7b)
$$\begin{aligned} \dot{K}(t)=\theta \textsf {t}_c(t)^\gamma K(t)^\beta \end{aligned}$$
(7c)
$$\begin{aligned} T=\textsf {t}_s(t)+\textsf {t}_c(t)+\textsf {t}_h(t), \end{aligned}$$
(7d)
$$\begin{aligned} K(x)=K_x, \end{aligned}$$
(7e)
$$\begin{aligned} D(x)=D_x, \end{aligned}$$
(7f)
$$\begin{aligned} D(\alpha )\le \overline{D}. \end{aligned}$$
(7g)

The current value Hamiltonian associated to (7) is

$$\begin{aligned} \mathcal {H}=U(\textsf {t}_s,\textsf {t}_c,\textsf {t}_h)+\lambda _K\theta \textsf {t}_c^{\gamma }K^\beta +\lambda _D\mu \left( D-A\textsf {t}_h^{\eta }-a\right) , \end{aligned}$$
(8)

where \({\lambda }_K\) and \(\lambda _D\) are the “adjoint” or “co-state” variables associated to knowledge and health deficits, respectively. In economic terms, \({\lambda }_K\) reflects the value given by our scholar to produce one additional paper, while \((-\lambda _D)\) is the value given by our scholar to avoid the accumulation of health deficits. Thus, \((-\lambda _D)\) is a measure of the willingness to pay for saving a life.

First-order conditions (FOCs)

Using (6), differentiating (8) with respect to \(\textsf {t}_c\) and \(\textsf {t}_h\) and equating the results to zero yields:

$$\begin{aligned} \textsf {MUC}_{\textsf {t}_c}(t)=\frac{\phi _s}{T-\textsf {t}_c-\textsf {t}_h}-\frac{\phi _c}{\textsf {t}_c}=\lambda _K \gamma {{\theta \textsf {t}_c}^{\gamma -1}}K^\beta ,\end{aligned}$$
(9)
$$\begin{aligned} \textsf {MUC}_{\textsf {t}_h}(t)=\frac{\phi _s}{T-\textsf {t}_c-\textsf {t}_h}+\phi _h{\textsf {t}_h}^{\omega }=(-\lambda _D)\eta \mu {A {\textsf {t}_h}^{\eta -1}}. \end{aligned}$$
(10)

Condition (9) states that the optimal \(\textsf {t}_c(t)\) satisfies that the marginal utility cost of cognitive activities, i.e. \(\textsf {MUC}_{\textsf {t}_c}(t)\), must be equal to the marginal value of the time devoted to cognitive activities. The marginal utility cost of cognitive activities is the difference between the marginal utility lost by not spending time on social activities, \(\phi _s/\textsf {t}_s\), and the marginal utility gain from the time devoted to cognitive activities, \(\phi _c/\textsf {t}_c\), which from (9) must be positive; i.e. \(\frac{\phi _s}{\textsf {t}_s}-\frac{\phi _c}{\textsf {t}_c}>0\). The marginal value of cognitive activities is the additional paper produced [right-hand side of Eq. (9)]. Condition (10) implies that the optimal time devoted to physical activities satisfies that the marginal utility cost of health activities, \(\textsf {MUC}_{\textsf {t}_h}(t)\), is equal to the marginal value of the time devoted to health activities. The marginal utility cost of health activities is given by the sum of the marginal utility lost by not spending time on social activities plus the marginal (dis)utility from physical activities. The marginal value of time devoted to health activities is the reduction in the accumulation of health deficits.

Envelope conditions and transversality conditions

From (7) we have two transversality conditions (TCs) and two envelope conditions (ECs). The TC associated to the accumulation of health deficits is

$$\begin{aligned} \lambda _D(\alpha )=-\nu \,\, \text { with }\,\,\nu >0, \end{aligned}$$
(11)

where \(\nu \) is the Kuhn–Tucker multiplier that results from the constraint on the maximum number of health deficits; i.e. \(D(\alpha )=\overline{D}\). The EC associated to the stock of health deficits is

$$\begin{aligned} \frac{\dot{\lambda }_D}{{\lambda }_D}=\rho -\mu . \end{aligned}$$
(12)

According to (12) impatience, which is reflected by \(\rho \), drives the price of avoiding the accumulation of health deficits up, while the natural rate of aging, \(\mu \), reduces the willingness to pay for avoiding the accumulation of health deficits. Solving (12) yields

$$\begin{aligned} -\lambda _D(t)=-\lambda _D(\alpha ) e^{(\rho -\mu )(t-\alpha )}. \end{aligned}$$
(13)

Thus, Eq. (13) shows that when \(\mu >\rho \) our scholar is less willing to pay for avoiding the accumulation of health deficits as time passes by, since the investment becomes less efficient with age.

Assuming \(S(K(\alpha ))=\kappa K(\alpha )\), which is similar to that used by Feichtinger et al. (2019), the transversality condition (TC) for the accumulation of knowledge isFootnote 3

$$\begin{aligned} \lambda _K(\alpha )=\kappa , \end{aligned}$$
(14)

where \(\kappa \) represents the marginal value of knowledge at the end of life. The envelope condition (EC) for the accumulation of knowledge is

$$\begin{aligned} \frac{\dot{\lambda }_K}{\lambda _K}= \rho -\beta \frac{\dot{K}}{K}. \end{aligned}$$
(15)

Thus, (15) suggests that the marginal value of knowledge first decreases with age when \(\beta \frac{\dot{K}}{K}>\rho \), since the stock of knowledge is initially small, and once the stock of knowledge is sufficiently large and \(\rho >\beta \frac{\dot{K}}{K}\) holds, it increases with age, ceteris paribus the behavior of the scientist over the lifecycle.

Terminal age condition

Our scholar chooses a terminal age, \(\alpha ^*\), that satisfies

$$\begin{aligned} \mathcal {H}(\alpha ^*)+\left. \frac{d S(K(\alpha ))}{d \alpha }\right| _{\alpha =\alpha ^*}=\rho S(K(\alpha ^*)) \end{aligned}$$
(16)

and

$$\begin{aligned} D(\alpha ^*)=\overline{D}. \end{aligned}$$
(17)

Condition (16) shows that the remaining lifetime utility is maximized when the marginal utility of living one additional instant (left-hand side) equals the marginal utility loss of not enjoying the “glory” from the stock of knowledge left to future generations (right-hand side). Solving (16) we obtain the shadow price of avoiding the accumulation of health deficits at age \(\alpha ^*\)

$$\begin{aligned} -\lambda _D(\alpha ^*)=\frac{\textsf {U}(\alpha ^*)+2\textsf {t}_c(\alpha ^*)\frac{\textsf {MUC}_{\textsf {t}_c}(\alpha ^*)}{\gamma }+\textsf {t}_h(\alpha ^*)\frac{\textsf {MUC}_{\textsf {t}_h}(\alpha ^*)}{\eta }-\rho \kappa K^*(\alpha ^*)}{\mu (\overline{D}-a)}. \end{aligned}$$
(18)

Equation (18) shows that the shadow price of health deficits at age \(\alpha ^*\), \(-\lambda _D(\alpha ^*)\), is positively related to the utility at the end of life, \(\textsf {U}(\alpha ^*)\equiv U(\textsf {t}_s(\alpha ^*),\textsf {t}_c(\alpha ^*),\textsf {t}_h(\alpha ^*))\), the value from producing more knowledge, \(2\textsf {t}_c(\alpha ^*){\textsf {MUC}_{\textsf {t}_c}(\alpha ^*)}/{\gamma }\), and the value of avoiding the accumulation of health deficits, \(\textsf {t}_h(\alpha ^*){\textsf {MUC}_{\textsf {t}_h}(\alpha ^*)}/{\eta }\). Whereas the shadow price of health deficits at age \(\alpha ^*\) is negatively related to the marginal utility loss of not enjoying the “glory” from the stock of knowledge left to future generations, \(\rho \kappa K^*(\alpha ^*)\). Consequently, the term \(\rho \kappa K^*(\alpha ^*)\) indicates that impatient scholars, who have many papers published, are less willing to pay for avoiding the accumulation of health deficits than more patient scholars.

4 Calibration and simulation strategy

We use our model to study what kind of preferences allow scholars to enjoy a long retirement life, while continuing to accumulate scientific knowledge.

4.1 Calibration

We calibrate the model to the scientific life of Prof. Dr. Gustav Feichtinger. Our simulation results are based on the following three facts. First, our professor goes to the gym 3 h per week and he also likes hiking on weekends. Second, our professor has produced 378 papers up to age 78 (\(K_x\)) with an average publication rate of 7 papers per year (see Fig. 1). After retirement, our professor has published on average around 5 articles per year (see the gray area in Fig. 1). The red solid line shows the fit of Eq. (3) to the scientific production of our professor, which gives an estimate for \(\beta \) of 0.21 with a standard error of 0.07. The overall scientific productivity, \(\theta =0.01\), and the returns to cognitive time, \(\gamma =0.7\), are calibrated to obtain an average number of papers published per year of 5. Third, based on cohort deaths rates of Austrian males born in 1940 from the Human Mortality Database (2018), we obtain that the average life expectancy at age 78 is 13 years. However, given that academicians enjoy a longevity advantage of 7 years relative to the general population (Winkler-Dworak 2008; Winkler-Dworak and Kaden 2014), we calibrate Eq. (2) so as to give an average longevity of 98.5 years. Specifically, we follow Mitnitski et al. (2002a, b) and set the value of the natural rate of ageing (\(\mu \)) and the exogenous rate of improvements in the accumulation of health deficits (a) at 0.04 and 0.02, respectively. The initial stock of health deficits \(D_x\) is set at 0.106, which corresponds to the estimated value of health deficits at age 78 reported by Mitnitski et al. (2002a), and the maximum number of health deficits \(\overline{D}\) at 0.22. We chose the value of \(\overline{D}\) that guarantees our scholar to reach 97.5 years without devoting time to physical activities. Then, we calibrate the parameters A and \(\eta \) that account for the impact of physical activity on the accumulation of health deficits to 0.000363 and 0.7, respectively. The values of A and \(\eta \) are set so as to obtain a difference between the highest longevity—720 min per day devoted to health activities—and the lowest longevity—0  min on health activities—of 7.35 years, which corresponds to the standard deviation of the life expectancy at age 78 for an Austrian male born in 1940 (Human Mortality Database 2018).

Fig. 1
figure 1

Production of papers by Prof. Dr. Gustav Feichtinger. Note: The shaded area depicts the retirement period of Prof. Dr. Gustav Feichtinger

Table 1 shows all the parameter values used in the model. For the sake of convenience, and without loss of generality, we have fixed the utility weight of physical activity (\(\phi _h\)) to 0.015 and the elasticity of physical activity (\(\omega \)) to 0.1. The value of \(\phi _h\) is much lower than the assumed values for \(\phi _s\) and \(\phi _c\) in order to have comparable instantaneous utility values between social and cognitive activities, which are in logs, and physical activity that is represented by a positive and strictly convex function.Footnote 4 Given that we do not know the preference of our scholar towards the different activities, we examine alternative values for all the remaining parameters of the utility function. Specifically, we consider that the utility weight of cognitive activities \(\phi _c\) may range between 2 and 20, and the utility weight on social activities \(\phi _s\) between \(\phi _c\) and 20. We consider \(\phi _s\) to be always equal or greater than \(\phi _c\) in order to guarantee that the first-order condition for an optimal time devoted to cognitive activities is satisfied; i.e. \({\phi _s}/{\textsf {t}_s}-{\phi _c}/{\textsf {t}_c}>0\). The range of values for \(\phi _s\) and \(\phi _c\) are chosen in order to account for the impact of different weights of physical activity on the utility function. In particular, given that \(\phi _h\) and \(\omega \) are fixed, an increase in the values of \(\phi _c\) and \(\phi _s\) implies a decline in the relative importance of the disutility of physical activity on the instantaneous utility. The subjective discount factor is considered to take values between 0 and 0.02, which includes the average discount factor of 0.01, and the salvage parameter ranges between 0 and 5.

Table 1 Parameter values

4.2 Simulation strategy

To account for all possible preferences, we assume the set of preference weights \(\psi =\{\kappa , \rho , \phi _c, \phi _s \}\) to be unknown and described by the uninformative prior—i.e., uniform distribution—density \(q(\psi )\). Then, we use our deterministic model M, that maps \(\psi \in \varPsi \subseteq \mathbb {R}_{+}^4\) into a set of output variables \(\pi \in \Pi \subseteq \mathbb {R}_{+}^2\):

$$\begin{aligned} M:\varPsi \rightarrow \varPi \end{aligned}$$
(19)

to generate output densities \(f(\pi )\). In particular, we run 33,000 random draws from the priors and generate densities for the two outputs: longevity (\(\alpha \)) and average number of papers per year during retirement (p), which is calculated as \((K(\alpha )-378)/(\alpha -78)\), where 378 is the total number of papers published by our scholar until age 78.

Fig. 2
figure 2

Set of possible longevity (\(\alpha \)) and average number of papers (p) generated with the benchmark model

Figure 2 shows the combination of possible average number of papers published per year (p) and longevity (\(\alpha \)), i.e. \(f(\alpha ,p)\), for all possible sets of preference weights \(\varPsi \). Each gray dot in Fig. 2 corresponds to a set of possible \(\psi \) values drawn from \(q(\psi )\). The shape of the joint density \(f(\alpha ,p)\) is due to the fact that not all combinations of longevity and number of papers per year are possible given the model M, the set of preference weights, and the boundary conditions. The marginal densities of p and \(\alpha \) are also shown at the top margin and at the right margin of Fig. 2, respectively.

According to (7) our scholar must devote time to each activity in order to attain a specific combination of average number of papers per year and longevity values. The average time devoted to each activity over the remaining lifespan, given the set of possible preference weights \(\varPsi \), is shown in Fig. 3. Blue dots depict the average time devoted to cognitive activities, green dots depict the average time devoted to social activities, and red dots correspond to the average time devoted to physical activities over the remaining life. Solid lines represent the mean of the average time devoted to each activity conditional on the maximum longevity (left panel) and average number of papers per year (right panel). From Fig. 3 we can observe that there is almost a one-to-one relationship between the physical activity and longevity (see left panel) and between cognitive activity and the average number of papers published per year (see right panel). The lack of a cloud of points around the mean of the average time devoted to physical activity implies that the maximum longevity is determined by \(\textsf {t}_h\) (see left panel), while the average number of papers per year is determined by the average time devoted to cognitive activity (see right panel). However, cognitive and social activities do not necessarily lead to a longer longevity, as the cloud of points in the left panel suggests, as well as social and physical activities are not directly translated, according to the cloud of points in the right panel, into a higher number of papers published per year. As a consequence, for instance, Fig. 3 shows that our scholar would need to devote around 5.8 h (\(=\) 350 min) per day on cognitive activity in order to produce over the remaining lifespan an average of five papers per year (see right panel), while whenever our scholar does not target a particular longevity the time spent on social activities and on physical activities is more flexible. By contrast, given that the total available time is assumed to be fixed, when our scholar seeks a specific average number of papers per year and a specific longevity, then the average time devoted to each activity is almost completely determined. Thus, we will use this information to study the optimal distribution of time across the different activities based on the outputs.

5 Results

Based on the pooled sample of 33,000 random draws of preference parameters as in Fig. 2, we study the behavioral characteristics that represent our scholar. We plot three rectangles in Fig. 4. Rectangle A indicates the most likely combination (in terms of the three stylized facts described at the beginning of Sect. 4.1) of the average number of papers published per year, over the remaining life, and the longevity of our scholar, which we consider from now on our benchmark. Rectangle B represents the combination of preference weights that make our scholar to publish the same average number of papers as in A but reach an average longevity of 100 years. Rectangle C depicts the combination of preference weights that allow our scholar to live up to 100 years although at the expense of publishing an average of four papers per year.

Fig. 3
figure 3

Average time devoted to each activity over the remaining life by longevity (left panel) and average number of papers per year (right panel): benchmark

Fig. 4
figure 4

Set of possible longevity (\(\alpha \)) and average number of papers (p) generated with the benchmark model

Table 2 shows the descriptive statistics of the preference weights within each rectangle. In rectangle A we obtain that publishing around five papers per year and living slightly above 98.5 years is associated to scholars with a high preference for social activities relative to cognitive and physical activities, with a high discount factor (impatient), and with a high marginal value of knowledge. Living longer but publishing the same number of papers as in A—i.e rectangle B—is associated to scholars with a high marginal value of the stock of knowledge left to future generations, with a low discount factor, and with a low value of the disutility of physical activities. By contrast, publishing less papers but living longer, as in rectangle C, is achieved by scholars who give a low marginal value to the stock of knowledge left to future generations, have a low time discount factor, and give a low value to the disutility of physical activity.

Table 2 Descriptive statistics of the preference parameters under three different scenarios

Table 3 reports the average distribution of time in each scenario. In the benchmark scenario (A) we obtain that in order to be able to publish five papers per year and reach a longevity of 98.6 years, our scholar has to devote on average 49% (\(=\) 350.4/720) of the available time to cognitive activities, 45% to social activities, and 7% of the time to physical activities. To increase the longevity by one year, while keeping the scientific production unchanged, as indicated in case B, our scholar should reduce the time on social activities from 45 to 30% and increase the time devoted to physical activities from 7 to 21%. However, in order to live half a year longer than in case B (see case C), our scholar needs to reduce the scientific production from 48 to 37% and increase the physical activity from 21 to 22%.

Table 3 Average distribution of time over the remaining life under three different scenarios

6 Extensions

In this section we propose three extensions to the optimal time allocation model (7). First, we assume the time devoted to physical activities does not generate disutility, i.e. \(\phi _h=0\). This model represents well the behavior of a “sportsman”. Second, we consider that the utility from the different activities declines as the stock of health deficits rises. We name this model as “health dependent utility” model. Third, we assume that our scholar’s productivity declines with increasing health deficits. This last model is named “cognitive decay” model.

6.1 Sportsman

In the first extension we assume that the utility of our scholar is not reduced by devoting time to physical activities. Thus, we set \(\phi _h=0\) so that the utility depends only on the time devoted to social and cognitive activities

$$\begin{aligned} U(\textsf {t}_s,\textsf {t}_c,\textsf {t}_h)=\phi _s\log \textsf {t}_s+\phi _c\log \textsf {t}_c. \end{aligned}$$
(20)

Figure 5 shows the set of possible values for longevity and average number of papers under the benchmark model (red circles) and under the sportsman model (blue triangles). By comparing the marginal distributions generated by both models, we can observe that a scholar who behaves as a sportsman will live on average longer (see the right margin) at the expense of publishing on average less papers per year (see the top margin).

Fig. 5
figure 5

Set of possible longevity (\(\alpha \)) and average number of papers (p) generated with the benchmark model (red circles) and the sportsman model (blue triangles) (color figure online)

The upward shift in longevity and the reduction in the number of papers in the sportsman model, shown in Fig. 5, are achieved by changing the optimal distribution of time. Figure 6 shows the optimal average time devoted to each activity over the remaining life under the sportsman model. As it can be seen in Fig. 6 this alternative model leads our scholar to devote more time to prevent the accumulation of health deficits and, as a consequence, longevity rises at the expense of reducing the average number of papers published.

Fig. 6
figure 6

Average time devoted to each activity over the remaining life by longevity (left panel) and average number of papers per year (right panel): sportsman model. Note: Solid lines represent the conditional mean over the average time devoted to each activity

Table 4 shows the descriptive statistics of the new preference weights characterizing cases A, B, and C in Fig. 5. The first thing to notice is that under the “sportsman” model only cases B and C, which both give an average longevity of 100 years, are possible. Second, comparing cases B and C we observe that publishing one less paper per year—from 5 papers to 4—is associated to scholars who get lower utility from cognitive activities, have a lower marginal value of knowledge, and discount the future pay-offs more.

Table 4 Descriptive statistics of the preference parameters for cases A, B, and C

6.2 Health dependent utility

In the second extension we assume decreasing pay-offs with increasing health deficits. This is equivalent to assume that our scholar enjoys social activities and cognitive activities less as the number of health deficits rises. This can be implemented by multiplying the instantaneous utility function with the ratio \((\mathcal {D}/D)^\varepsilon \). Thus, the instantaneous utility becomes

$$\begin{aligned} U(D,\textsf {t}_s,\textsf {t}_c,\textsf {t}_h)=\left( \frac{\mathcal {D}}{D}\right) ^\varepsilon \left( \phi _s\log \textsf {t}_s+\phi _c\log \textsf {t}_c\right) -\phi _h \frac{\textsf {t}_h^{1+\omega }}{1+\omega } , \end{aligned}$$
(21)

where \(\mathcal {D}\in (0,D)\) is an arbitrary constant value of the stock of health deficits and \(\varepsilon >0\) accounts for the rate of decline in utility caused by increases in health deficits. The constant term \(\mathcal {D}>0\) is the measure with which individuals compare their health deficits (Strulik 2019). We set \(\mathcal {D}\) to the health deficits at age 78; i.e. \(\mathcal {D}=D_x\). To understand to what extent this new model can modify the optimal time allocation across the different activities, we assume \(\varepsilon =0.5\). The value of \(\varepsilon \) is ten times higher than the value assumed by Schuenemann et al. (2017) and Strulik (2019). As a result, our calibrated \(\varepsilon \) implies that our scholar would value his utility from social and cognitive activities twenty five percent less at the end of life compared to his utility at age 78.Footnote 5

Fig. 7
figure 7

Set of possible longevity (\(\alpha \)) and average number of papers (p) generated with the benchmark model (red circles) and the health dependent utility model (blue triangles) (color figure online)

Figure 7 shows that this alternative model (labeled as “health dependent utility”) gives slightly lower results for the longevity and slightly higher results for the average number of papers published compared to our benchmark model. This is because the relative disutility of health increases as the pay-off from social and cognitive activities declines. Hence, the individual devotes less time to physical activity. Moreover, Fig. 8 shows that the distribution of time across the different activities conditional on longevity and average number of papers per year does not significantly differ from Fig. 3.

Fig. 8
figure 8

Average time devoted to each activity over the remaining life by longevity (left panel) and average number of papers per year (right panel): health dependent utility model. Note: Solid lines represent the conditional mean over the average time devoted to each activity

Table 5 reports the descriptive statistics of the preference parameters characterizing cases A, B, and C in the “health dependent utility” model. The main difference between Tables 2 and 5 is in the salvage parameter. In particular, the simulation results show that in order to obtain similar values of longevity and average number of papers, the scholar in the health dependent utility model values less the stock of knowledge left to future generations. This is because the strength of the utility loss of not enjoying the “glory” from the stock of knowledge left to future generations (\(\kappa \)) on the shadow price of health deficits (\(-\lambda _D(\alpha )\)) is higher in the health dependent utility model. See Eqs. (33) and (33ii) in “Appendix B”. As a consequence, it is necessary a lower value of \(\kappa \) to reach the same longevity as in the benchmark model.

Table 5 Descriptive statistics of the preference parameters for cases A, B, and C

6.3 Cognitive decay

As a follow-up of the previous model, we now study the case in which an increase in health deficits affects negatively on the efficiency of cognitive activities. This alternative model can be implemented by assuming that the change in time of papers published is reduced by the factor \((\mathcal {D}/D)^\nu \). As a result, the number of papers published at time t is given by

$$\begin{aligned} \dot{K}=\theta (\mathcal {D}/D)^{\sigma } \textsf {t}_c^\gamma K^{\beta }, \end{aligned}$$
(22)

where \(\sigma \in (0,1)\) accounts for the rate of decline in the efficiency of the cognitive activity due to a deterioration of the health status. Equation (22) implies that the number of paper published depends on two counteracting forces. On the one side we have that the productivity of an hour worked on cognitive activities increases because of the experience accumulated writing papers; i.e. \(K^{\beta }\). Whereas, on the other side, we have that the productivity of an hour devoted to cognitive activities decreases as the number of health deficits rises; i.e. \((\mathcal {D}/D)^{\sigma }\). Following a similar strategy as in the previous model, we set \(\mathcal {D}\) at the value of the health deficit index at age 78 and \(\sigma \) at 0.5. Therefore, we consider that the efficiency of the time devoted to cognitive activities declines by 25% at the end of life, ceteris paribus the remaining variables.

Fig. 9
figure 9

Set of possible longevity (\(\alpha \)) and average number of papers (p) generated with the benchmark model (red circles) and the cognitive decay model (blue triangles) (color figure online)

Figure 9 shows the combination of possible values of the average number of papers published per year and longevity under the benchmark model and the “cognitive decay” model. Red circles depict the result for the benchmark model, while blue triangles depict the results for the “cognitive decay” model. As we can see in Fig. 9 the “cognitive decay” model gives very similar longevity values compared to the benchmark model (see the marginal distribution on the right margin), but lower average number of papers per year. This is due to the assumption that the efficiency of cognitive activity declines as our scholar ages.

Fig. 10
figure 10

Average time devoted to each activity over the remaining life by longevity (left panel) and average number of papers per year (right panel): cognitive decay model. Note: Solid lines represent the conditional mean over the average time devoted to each activity

The average time devoted to each activity over the remaining life in the cognitive decay model is shown in Fig. 10. Comparing Figs. 3 and 10 we can observe that the average time spent on cognitive activities, conditional on the average number of papers per year, increases in the cognitive decay model relative to the benchmark model. However, there is no significant change between the benchmark model and the cognitive decay model on the time spent on the different activities in order to reach a specific longevity. Therefore, despite the fact that individuals devote the same average time across the different activities, in the cognitive decay model our scholar will reach the same longevity but lower average number of papers.

Table 6 shows that publishing an average of five papers per year and reaching a longevity of one hundred years (case B) is not possible in this model. From cases A and C we can see that in order to reach the same number of papers as in the benchmark model, scholars should give in the cognitive decay model a higher preference towards cognitive activities and value more the knowledge left to future generations than in the benchmark model.

Table 6 Descriptive statistics of the preference parameters for cases A, B, and C

7 Conclusions

As the life phase spent in retirement has increased over time, activity patterns in retirement have changed as well. Recent studies (e.g. Mergenthaler et al. 2018) have investigated the variation in these activity patterns identifying various types of retirees. However, so far, the role of an active retirement and its impact on the retiree’s health (and hence life expectancy) has not formally been investigated.

In this paper we built up a model of optimal time allocation in retirement allowing for feedback mechanisms of the choice of activity on the agent’s health. We calibrate our model to the life of a scientific scholar and assume that time in retirement can be allocated between cognitive activities, social activities and physical activity. While cognitive activity increases the stock of scientific papers produced, physical activity increases health and hence the life span of the retiree. We assume that our scholar derives utility out of cognitive and social activities and disutility from physical activity. Moreover, we introduce a salvage value for the papers written until the end of life.

Depending on the time preference of the retiree, the valuation of the salvage value of papers written, and the utility weight on the various activities we first study the optimal allocation of time in retirement and its impact on longevity and on the number of papers written. Then, we use the numerical results to investigate the behavioral characteristics that support specific outcomes of longevity and number of papers as well as the optimal allocation of time to reach these specific outcomes. Overall our results show a positive correlation between living longer and the joy of producing papers, being more patient, and the utility from leaving a large stock of knowledge to future generations.

To further study how physical activity impacts on longevity we also analyze three extensions of our benchmark model. In the first extension we have assumed that our scholar derives no disutility from physical activity. Such a set up allows for a pronounced shift in the longevity as the optimal time spent on physical activity increases, but at the expense of less papers being written. Since the health status will not only determine the longevity but may also affect cognitive and social outcomes, we have introduced two additional alternative specifications of our model framework. A model in which health is multiplicatively linked to the utility gained out of social and cognitive activities and another model in which the efficiency of cognitive activities to produce papers is reduced if health deteriorates. Our results indicate that these indirect effects of the health status on utility (case a) and on the efficiency of producing papers (case b) imply that in order to obtain the same value of the longevity as in the benchmark case the valuation of the stock of knowledge left to future generations needs to be reduced (case a) and alternatively increased (case b).

The results obtained in this paper assume that the time spent on each activity is mutually exclusive. Further possible extensions of the model set up can allow for the fact that either the time spent on physical activity can contribute to the time spent on social activities (e.g. exercising together with friends), or the time spent on physical activity can contribute to the time spent on cognitive activities (e.g. gaining additional innovative ideas during physical activity). Alternatively, we may also allow for interactions of the time spent on one activity to increase the efficiency of the time spent on other activities. Thus, our model should be considered a first attempt to gain more insight into the mutual feedback between an active retirement and longevity.