This is a question often asked by beginners who correlate their income and their spending. Such people intuitively know that if their income doubled tomorrow, their expenses would double in short order. While such a correlation between income and expenses is the result of insufficient financial discipline (at least in first world countries), the solution to this question answers a more relevant problem - "If I would like an income of X in my retirement, how long will I have to work if I save some fraction of X and invest at an interest rate \(r\)?" (X is in dollars per time in all parts of that question.) This is a good way to set goals for those people who fantasize about a luxurious jet setting retirement. Regardless of the sensibility of the question and the motivation, it can be a powerful goal generating tool. Start again with a balance on our savings.

$$
\frac{\partial m}{\partial t} = rm +I-E
$$

Solve the first order ODE by separation of variables.

\(r\), \(r_w\), \(I\), and \(E\) must be greater than 0 and \(m_0\) must be greater than or equal to 0 otherwise this calculator will return NvN for "Not valid Number."