The Depth of a Financial Model

Explores building a more complex and realistic model with Excel. Here we focus on extending the simple retirement model to have dynamic salary growth.

Simple Retirement Model Assumptions


Notes

  • Part of the reason we begin with such a seemingly simple problem is to show how complex it is to model any real-world situation with a high degree of accuracy

  • You may have thought we solved the retirement problem already, but there is a lot that we left out intentionally to make the problem simpler

  • Assumptions are key to any model. They allow you to simplify the problem so it is actually feasible to solve. The stronger your assumptions, the less accurate the model, but the simpler it is to implement.

  • No real-world model will ever be perfectly accurate. The world is just too complex to capture it all. We always have to settle for some level of assumptions

  • The assumptions form the base of the model, from which we can generate the logic and equations

  • There can be many different possible assumptions for a given model. It is a big part of the modeler’s job to pick the best assumptions that can get the model as accurate as needed while balancing the costs of building and maintaining complex models

Transcript

  • 00:03: hey everyone
  • 00:04: nick dierbert is here teaching you
  • 00:05: financial modeling and today we're going
  • 00:07: to talk about the depth of a financial
  • 00:09: model
  • 00:10: and extending a simple retirement model
  • 00:12: in excel
  • 00:15: so we started out in this class
  • 00:18: with a very simple model to work with
  • 00:21: just a very basic
  • 00:22: retirement model that most people would
  • 00:24: solve on a calculator
  • 00:26: and you know part of that was so that
  • 00:30: you know we can focus more on the
  • 00:32: modeling part rather than
  • 00:33: having to know any you know complex
  • 00:36: finance
  • 00:37: concepts to get started but the other
  • 00:40: reason
  • 00:40: was to really highlight just how complex
  • 00:44: the world is and that even a simple
  • 00:47: model
  • 00:47: actually uh can become very very complex
  • 00:51: once you really try to bring in all the
  • 00:54: particulars
  • 00:55: of the real world and so with every
  • 00:58: model there's always a trade-off
  • 01:01: you can keep making it more and more
  • 01:02: realistic and that makes it more and
  • 01:05: more complex
  • 01:07: and so you ultimately have to make a
  • 01:09: decision
  • 01:10: about you know what you're using the
  • 01:12: model for how accurate does it need to
  • 01:14: be
  • 01:15: for how much you're going to really try
  • 01:18: to get close to the real world
  • 01:21: ultimately the real world is just too
  • 01:23: complex
  • 01:24: to be able to model every single aspect
  • 01:27: of the real world and so ultimately
  • 01:30: we're always
  • 01:31: making some simplifications to make our
  • 01:33: lives
  • 01:34: easier and keep the complexity of the
  • 01:37: model down
  • 01:40: so we're going to
  • 01:44: just extend this retirement model that
  • 01:46: we've been working with already
  • 01:47: ultimately solving basically the same
  • 01:50: problem
  • 01:50: but trying to get at some more realistic
  • 01:53: assumptions
  • 01:54: going along with that
  • 01:58: so when we break down any model
  • 02:01: it has a few conceptual parts to it
  • 02:05: so we have the equations the logic and
  • 02:07: the assumptions
  • 02:08: going into the model and really the
  • 02:12: assumptions
  • 02:13: are the base of the model once you
  • 02:16: decide
  • 02:17: what your assumptions are then you can
  • 02:20: go and figure out
  • 02:21: what the actual logic and equations
  • 02:24: involved in the model are going to be
  • 02:27: and those assumptions are really where
  • 02:30: we're thinking about
  • 02:31: you know how close do we want to be to
  • 02:32: the real world what do we want to assume
  • 02:36: to make our lives easier uh and make the
  • 02:38: model less complex
  • 02:40: uh so that we can actually get to the
  • 02:42: solution in a reasonable amount of time
  • 02:46: and then once you've decided on you know
  • 02:48: these are the things uh that i'm going
  • 02:50: to assume
  • 02:51: then out of those assumptions you can
  • 02:53: create these logic and equations which
  • 02:56: actually
  • 02:56: drive the model and so
  • 03:01: you know we already built out this very
  • 03:03: simple retirement model where we just
  • 03:04: said
  • 03:05: you know this person has a certain
  • 03:07: amount of desired cash
  • 03:09: we want to know how long it's going to
  • 03:10: take to retire they can
  • 03:12: you know save a certain amount each year
  • 03:15: and they invest it at a certain rate
  • 03:17: uh how long does it take
  • 03:20: so when we're thinking about the more
  • 03:22: general question of just
  • 03:23: how long does it take to retire uh
  • 03:27: simplifying it down to the problem that
  • 03:29: we looked at last time there were
  • 03:31: actually quite a few
  • 03:32: assumptions that went into that so let's
  • 03:35: break that down a little bit uh
  • 03:38: so we see
  • 03:41: a few assumptions here on a slide one
  • 03:44: here is that the salary
  • 03:46: is constant over time and
  • 03:49: uh you know that is definitely not
  • 03:52: a very realistic assumption right as you
  • 03:55: go through your career
  • 03:57: you're going to get promotions you're
  • 03:59: going to switch jobs
  • 04:00: and that is going to increase your wage
  • 04:03: typically people earn
  • 04:04: higher salaries as they get later into
  • 04:06: their career
  • 04:09: and so just having one constant salary
  • 04:11: really does not
  • 04:12: capture that very well and then
  • 04:15: going to number two the savings rate
  • 04:18: we just had a single consistent savings
  • 04:21: rate
  • 04:22: in the original model but really
  • 04:25: the savings rate is also going to change
  • 04:28: over time
  • 04:29: uh you know you think about if you're
  • 04:31: bringing more money in
  • 04:33: then it's likely that you'll be able to
  • 04:34: save a larger percentage of that
  • 04:37: um and other things can affect that you
  • 04:40: know if it's a
  • 04:41: recession uh you might not be able to
  • 04:43: save as much
  • 04:45: etc and then going to number three
  • 04:49: thinking about the
  • 04:50: investment returns so the investment
  • 04:53: returns
  • 04:54: uh we just had a single constant rate uh
  • 04:57: but really we know that
  • 04:58: investments you know they're going to
  • 05:00: return
  • 05:02: different risky investments are going to
  • 05:03: return different amounts
  • 05:05: each year and so just having a single
  • 05:08: constant investment rate is not going to
  • 05:10: be able to capture that
  • 05:11: very well um you know really there
  • 05:14: should be you know some kind of
  • 05:15: randomness
  • 05:16: to that investment rate and
  • 05:20: you know ideally it could be affected by
  • 05:22: you know expansionary
  • 05:24: periods and recessionary periods should
  • 05:26: have lower returns
  • 05:27: during a recession so there's a lot more
  • 05:30: that we could do
  • 05:31: with the investment rate you could
  • 05:34: really even take that
  • 05:35: even further you could build out an
  • 05:37: entire portfolio model
  • 05:39: uh you know say all the different
  • 05:41: investments that this person is
  • 05:42: investing in
  • 05:44: and then calculate the returns on each
  • 05:46: one of those individual investments and
  • 05:47: aggregate those all into a portfolio
  • 05:50: uh to ultimately determine the
  • 05:51: investment return in each year
  • 05:54: uh and then going to number four uh
  • 05:58: the amount needed into retirement is
  • 06:00: given by a fixed amount of desired cash
  • 06:02: we just said you know 1.5 million that's
  • 06:05: how much we're going to need to retire
  • 06:07: uh but they're you know where did that
  • 06:09: 1.5 million come from
  • 06:11: you know really it should be driven by
  • 06:13: you know what are your expenses going to
  • 06:15: be in retirement
  • 06:16: how long are you expecting to live you
  • 06:18: know under you know what different
  • 06:19: scenarios of if you live longer how much
  • 06:22: more
  • 06:22: money are you going to need um and
  • 06:24: thinking about all of these kinds of
  • 06:26: issues
  • 06:28: and then uh the the the last one five
  • 06:31: kind of ties in here with with what i
  • 06:33: just said that
  • 06:34: uh the retirement uh
  • 06:37: cash needed was just a totally fixed
  • 06:40: number in the model there was nothing
  • 06:42: uh internal to the model that was
  • 06:44: driving that such as
  • 06:46: you know what if right when you retire
  • 06:48: uh we just hit a recession
  • 06:50: right at that point and so all your
  • 06:52: investments have gone down
  • 06:54: just as you're going into retirement how
  • 06:56: does that ultimately affect things you
  • 06:58: then you know probably would need to
  • 06:59: keep working until
  • 07:02: the market can rebound or you would
  • 07:04: evaluate you know if you are drawing on
  • 07:06: the portfolio
  • 07:07: uh while it's down then uh you know how
  • 07:10: much is that
  • 07:11: going to hurt your position overall so
  • 07:13: there's a lot
  • 07:14: a lot that we could consider and you
  • 07:17: know what
  • 07:18: seemed on the surface like a very simple
  • 07:20: problem uh
  • 07:21: you know just oh five keys on the top of
  • 07:23: the financial calculator and we're done
  • 07:25: right
  • 07:26: or a single function in excel or a
  • 07:28: single function in python we're done
  • 07:30: but no there's there's so many things
  • 07:32: that we assumed
  • 07:33: in going to that simple problem when in
  • 07:36: reality
  • 07:37: the real world is much much more complex
  • 07:39: than that there are so many different
  • 07:41: factors
  • 07:41: going on and bringing all the things
  • 07:45: that i just mentioned
  • 07:46: into one single model i mean that that
  • 07:48: would be a very massive
  • 07:50: model and so there's always a trade-off
  • 07:53: here
  • 07:54: uh you know if you just need to get a
  • 07:57: rough idea
  • 07:58: you know am i going to retire somewhere
  • 07:59: between 30 and 35 years
  • 08:01: like in that case your model really does
  • 08:03: not need to be that accurate
  • 08:05: and you can have all these assumptions
  • 08:07: because you don't need a very accurate
  • 08:09: result
  • 08:10: um but you know in another situation
  • 08:13: where
  • 08:14: uh you know maybe you're a large company
  • 08:16: building out a model that's
  • 08:17: you know making decisions for the
  • 08:19: company that's moving billions of
  • 08:20: dollars around and
  • 08:21: being off by one percent is going to be
  • 08:23: you know millions of dollars of
  • 08:25: profit difference in that case you know
  • 08:27: you care a lot about accuracy and then
  • 08:29: you you do want to build in
  • 08:31: as many uh uh
  • 08:34: approximations of the real world as you
  • 08:36: can rather than simplifying them
  • 08:38: with assumptions so we're going to come
  • 08:41: back next time to talk
  • 08:43: more specifically about the assumption
  • 08:46: that we're going to relax
  • 08:47: in the salary model to make it more
  • 08:50: realistic
  • 08:51: and after that we'll go into actually
  • 08:53: building
  • 08:54: the model out in excel so thanks for
  • 08:57: listening
  • 08:57: and see you next time

Relaxing the Salary Assumption


Notes

  • We will experience first-hand the tradeoff in relaxing assumptions: greater accuracy but also greater complexity

  • We are going to now a fairly realistic assumption for salary. It is still not however the most realistic possible. For example, promotions should be less frequent and smaller raises during recessions and more frequent/larger raises during expansionary periods. Promotions should not come at a fixed interval, they should be faster in the early stages of the career and there should be randomness to it. The model should be run many times to understand the distribution of years to retirement based on the randomness in the salary.

  • Obviously that would lead to quite a complex model already, and that’s only thinking about the salary assumption.

  • In deciding how much to relax assumptions, the desired degree of accuracy of the model is critically important. For what decisions is the model being used? Will those decisions be any different if the model increases in accuracy? What is the cost of being wrong?

Transcript

  • 00:03: hey everyone
  • 00:04: nick dear bertis here teaching you
  • 00:05: financial modeling today we're going to
  • 00:08: talk about relaxing the salary
  • 00:10: assumption
  • 00:10: in our simple retirement model as part
  • 00:13: of the depth of a financial model series
  • 00:16: focusing on building out a more involved
  • 00:19: excel
  • 00:20: model so
  • 00:23: we've been working on this basic
  • 00:25: retirement problem
  • 00:28: and uh we talked about how
  • 00:31: uh basically we made a lot of
  • 00:33: assumptions in this original
  • 00:35: model um which made it a very simple
  • 00:38: calculation
  • 00:38: but also not very realistic
  • 00:42: and so we um can try to
  • 00:45: relax an assumption to get closer to the
  • 00:48: real world
  • 00:50: um so most of the time
  • 00:53: you're not able to completely get rid of
  • 00:55: an assumption uh you're just going to
  • 00:57: replace it
  • 00:58: with an assumption which is closer to
  • 01:01: how the real world works
  • 01:05: so the one that we're going to look at
  • 01:07: relaxing here
  • 01:09: is the salary assumption
  • 01:12: whereas before we said that
  • 01:16: the salary is just constant it's you
  • 01:19: know 50 000
  • 01:20: or whatever and that's going to be the
  • 01:22: salary for
  • 01:23: the entire life of this individual but
  • 01:26: of course
  • 01:27: that's not very realistic um and so
  • 01:31: we're going to replace it with something
  • 01:33: which gets fairly close
  • 01:34: to reality and that's that
  • 01:38: you know we want to work in the idea
  • 01:40: that people's salary grows over time
  • 01:42: throughout their career right
  • 01:43: as they uh you know get promotions
  • 01:46: or you know change companies uh
  • 01:49: you know they're going to get a raise
  • 01:52: associated with that
  • 01:53: most of the time and you know such that
  • 01:56: at the end of their career they're
  • 01:57: making substantially more than the
  • 01:59: beginning of their career
  • 02:01: and not only that but also
  • 02:05: typically most companies will give a
  • 02:07: cost of living
  • 02:08: raise every year uh regardless
  • 02:11: of whether you're getting a promotion or
  • 02:12: anything else
  • 02:14: you know they're just going to give you
  • 02:15: you know one two percent something like
  • 02:17: that
  • 02:18: uh raised just to account for inflation
  • 02:21: over time so
  • 02:25: we're going to work both of these things
  • 02:27: into our assumption
  • 02:28: that you know every certain number of
  • 02:30: years
  • 02:31: this individual gets a promotion and
  • 02:33: they get a raise
  • 02:34: associated with that a certain
  • 02:36: percentage raise
  • 02:38: and then every year they're also getting
  • 02:40: a certain percentage
  • 02:41: cost of living raise now
  • 02:46: this is definitely a lot closer to how
  • 02:48: the real world works
  • 02:49: but of course we're not getting all the
  • 02:52: way there there's a lot more that we
  • 02:54: could potentially do
  • 02:55: with this salary assumption but i think
  • 02:59: what we have here is already getting you
  • 03:01: know fairly close such that the results
  • 03:03: are probably
  • 03:04: not going to be all that different going
  • 03:06: to more realistic
  • 03:08: situations of course to make this more
  • 03:10: realistic
  • 03:11: uh you know one key thing to think about
  • 03:13: would be
  • 03:15: the business cycle you know where is the
  • 03:18: economy
  • 03:19: in any given year are we in a recession
  • 03:21: are we in an expansion period
  • 03:22: is it kind of a normal uh just baseline
  • 03:25: kind of year
  • 03:26: um and you would think that uh you would
  • 03:29: be less likely to get a promotion
  • 03:31: in a recession more likely in an
  • 03:34: expansion
  • 03:35: and also you know given that you do get
  • 03:37: a promotion you would expect it to be
  • 03:39: a larger raise in an expansionary period
  • 03:43: versus a recession and then also with
  • 03:46: our current assumption we're assuming
  • 03:48: you know every five years or whatever a
  • 03:51: fixed interval
  • 03:51: in between uh the promotions but in
  • 03:54: reality
  • 03:55: that would be uh more random than that
  • 03:58: there would be
  • 03:59: you know sometimes you get a promotion
  • 04:01: quickly sometimes it's going to take
  • 04:02: longer but also there's going to be a
  • 04:05: trend for most people that
  • 04:07: the promotions are going to come slower
  • 04:09: the later you get into your career
  • 04:11: you know as you get higher up on the
  • 04:13: ladder there are less steps to go and so
  • 04:15: uh you get promotions less often so
  • 04:19: um you know that would be getting even
  • 04:21: more realistic building in the the
  • 04:23: economic
  • 04:25: conditions as well as you know trying to
  • 04:28: get this trend of less promotions over
  • 04:30: time
  • 04:31: and you know giving some randomness to
  • 04:34: when the promotions are actually going
  • 04:35: to occur
  • 04:36: you could also add some randomness to
  • 04:39: the the level of the raise that you're
  • 04:41: going to get
  • 04:42: and a promotion so there's a lot that we
  • 04:45: could do
  • 04:46: to try and go even further and get even
  • 04:48: more realistic
  • 04:50: but you always have to kind of cut it
  • 04:52: off at some point
  • 04:53: we talked in the last video we would be
  • 04:56: you know
  • 04:56: spending weeks and weeks on this model
  • 04:58: if we tried to
  • 05:00: uh you know go after you know everything
  • 05:02: to make it as realistic as possible
  • 05:04: everywhere
  • 05:06: and that's really just not going to be
  • 05:07: feasible for most models there just
  • 05:09: isn't enough time
  • 05:11: to approximate the real world that
  • 05:13: closely
  • 05:14: and so we just have to find a nice
  • 05:16: balance of
  • 05:18: we're getting pretty close to the real
  • 05:19: world uh
  • 05:21: and we're not going to need to be any
  • 05:22: closer for the purposes of the decision
  • 05:25: that we're making based off the model so
  • 05:28: with that we'll stick with this constant
  • 05:32: cost of living raise growth every year
  • 05:35: every
  • 05:35: x number of years we're going to get a
  • 05:37: promotion and it's going to be
  • 05:39: a fixed percentage raise with each one
  • 05:42: of those promotions
  • 05:45: so you know i mentioned how
  • 05:48: [Music]
  • 05:50: when modeling you know you kind of start
  • 05:53: with the assumptions and then you get
  • 05:55: the logic and the equations
  • 05:56: out of that assumption right so we just
  • 05:58: came up with a new assumption here about
  • 06:01: how the salary should work
  • 06:03: and so that brings us then to the
  • 06:06: equation
  • 06:06: which represents that salary over time
  • 06:10: so breaking down this equation here
  • 06:14: uh we can think of it kind of in three
  • 06:16: parts
  • 06:17: so uh the first part here is
  • 06:21: um the initial salary whatever
  • 06:25: salary you started at uh at the
  • 06:27: beginning of your career
  • 06:29: and this is ultimately to get you know
  • 06:31: the salary in any given year
  • 06:34: so whatever salary you started from and
  • 06:36: then the next part
  • 06:37: is the um
  • 06:41: the cost of living raised
  • 06:44: so it's you know one plus whatever the
  • 06:48: return for cost of living is you know
  • 06:50: one or two percent or whatever
  • 06:52: uh the company gives for cost of living
  • 06:54: raise uh to the power of however many
  • 06:57: years
  • 06:58: uh you've gotten the raise so you know
  • 07:02: then just thinking about this part of
  • 07:04: the equation
  • 07:06: and you're going to start out at your
  • 07:08: initial salary
  • 07:09: and then this is going to be to the
  • 07:10: power 0. so you'll just have your
  • 07:12: initial salary and your 0
  • 07:15: but then coming to one year um then
  • 07:17: you're gonna have
  • 07:18: your initial salary plus you know one or
  • 07:22: times 1.02
  • 07:23: if it's a two percent um
  • 07:26: cost of living raise and then that's
  • 07:28: just going to compound year over
  • 07:30: year uh going forward uh so
  • 07:33: kind of common uh just compound interest
  • 07:36: kind of logic that went into forming
  • 07:39: this equation
  • 07:41: and then the last part here is the
  • 07:43: promotion raises
  • 07:44: so again we can think of uh you know the
  • 07:47: promotions as being an additional return
  • 07:50: on the salary uh cumulative
  • 07:54: return here so you know just
  • 07:58: like the cost of living raised part it's
  • 08:00: going to be
  • 08:01: uh you know you're getting one plus the
  • 08:03: promotion
  • 08:04: return you know the the percentage raise
  • 08:06: that you get
  • 08:07: as part of a promotion and you're going
  • 08:10: to get that
  • 08:11: for as many promotions as you've had
  • 08:14: up until that point so
  • 08:18: we can think of it in these three parts
  • 08:20: the initial salary
  • 08:21: and then we can call this part the cost
  • 08:23: of living factor
  • 08:25: and then we can call this part the
  • 08:27: promotion factor so we can kind of
  • 08:29: decompose this
  • 08:30: into three parts that we can think about
  • 08:32: separately
  • 08:35: so that's an overview of uh
  • 08:39: you know the the new logic and equations
  • 08:41: that are going to go
  • 08:42: into the new model um and we're going to
  • 08:45: come back next time to cover
  • 08:47: some skills that we need to actually
  • 08:49: implement
  • 08:50: the new model and excel before we go and
  • 08:53: implement
  • 08:54: it and the video after that so thanks
  • 08:56: for listening
  • 08:57: and see you next time

Skills for the Advanced Excel Model


Notes

  • Larger Excel models can get very messy quickly. Then it becomes difficult for anyone to consume your model or to improve it later. Therefore it is important to stay organized.

  • As before, we want to keep the inputs separate from the outputs. But in a larger model, we need to take this a step further. We can break the model into various parts or stages, each which have their own inputs and outputs. Each part should have its own dedicated worksheet and there should be an overview page which has the main inputs and outputs.

  • Conditionals are necessary to control the flow and output of a model under different conditions. We use =IF, =AND, =OR in Excel to accomplish this

  • Use modulo (=MOD) to get the division remainder. You might not need this every day in modeling but it is very useful for this particular salary situation we are modeling

  • =VLOOKUP is very useful to find items in a table and can make your model much more flexible

Transcript

  • 00:03: hey everyone
  • 00:04: nick dear burtis here teaching you
  • 00:06: financial modeling
  • 00:07: and today we're going to talk about
  • 00:09: skills to build out a more
  • 00:11: advanced excel model and this is part of
  • 00:14: our segment on the depth of a financial
  • 00:16: model and extending a simple retirement
  • 00:18: model in excel
  • 00:20: so in the prior videos we talked about
  • 00:24: this simple retirement model and how
  • 00:25: we're going to add this
  • 00:26: assumption to it that the salary should
  • 00:29: grow with promotions as well as cost of
  • 00:31: living raises
  • 00:33: so now let's look at some skills that we
  • 00:36: need
  • 00:37: to build out the excel model for this
  • 00:42: so one thing that we need to pay a lot
  • 00:44: of attention to now
  • 00:46: uh that this is gonna be a bit larger
  • 00:48: excel model
  • 00:50: is we have to pay a lot of attention to
  • 00:52: the structure
  • 00:53: and organization of the model with excel
  • 00:57: you can very quickly uh get into a spot
  • 01:01: where
  • 01:01: it's very difficult to understand how
  • 01:04: everything flows through the model
  • 01:06: where your inputs where your outputs
  • 01:09: where does that
  • 01:09: where does one calculation go to the
  • 01:11: next
  • 01:12: since it's all very free form and you
  • 01:14: can kind of put anything anywhere
  • 01:17: as far as the layout then it's not
  • 01:21: very clear as someone just coming into
  • 01:22: the model
  • 01:24: you know how everything flows through
  • 01:26: unless
  • 01:27: you take the time to structure it very
  • 01:31: well
  • 01:31: so that it's easy for any uh consumer of
  • 01:34: your model or someone who's going to
  • 01:36: come and work on your model later
  • 01:38: which may even be you you know later
  • 01:40: down the road after you haven't worked
  • 01:42: on it for a while
  • 01:43: um this structure is very helpful for
  • 01:46: that
  • 01:47: um so the structure that i'm talking
  • 01:50: about
  • 01:51: um you know is a little bit what we've
  • 01:53: talked about before
  • 01:55: and that you want to have clear
  • 01:56: separation
  • 01:58: of your inputs and outputs that's the
  • 02:00: biggest thing
  • 02:01: is you know you have to know what is
  • 02:05: the coming into the model what can the
  • 02:07: the user of the model change around as
  • 02:09: the inputs
  • 02:10: and what are the main outputs from the
  • 02:13: model and having those presented in a
  • 02:15: clear way
  • 02:17: and that's true for any excel model you
  • 02:19: should have that
  • 02:21: but as we get to a larger model we also
  • 02:23: need to think about
  • 02:24: you know basically we're not just doing
  • 02:27: one single calculation
  • 02:28: anymore in a larger model there's going
  • 02:32: to be
  • 02:32: really multiple different sub problems
  • 02:36: that you're solving as part of the
  • 02:38: larger
  • 02:39: problem and so we want to take
  • 02:43: break it down into these sub problems
  • 02:45: and we can put each of these sub
  • 02:47: problems on its own
  • 02:48: sheet of the excel model
  • 02:52: and then each sheet we can kind of treat
  • 02:55: as its own mini
  • 02:57: sub model and within that sheet you
  • 02:59: should have the inputs
  • 03:01: going into that calculation you should
  • 03:02: have the outputs
  • 03:04: from that calculation clearly separated
  • 03:07: and then you should have an overview
  • 03:09: page for the model which has
  • 03:10: all the inputs and the main outputs from
  • 03:14: the model and everything should be
  • 03:15: linked together
  • 03:16: all through the different sheets and
  • 03:18: this is the way that you can stay very
  • 03:20: organized
  • 03:21: even with a larger excel model
  • 03:26: um so that's the structure
  • 03:29: now let's look at a few different
  • 03:33: functions that we're going to use to
  • 03:35: actually build out
  • 03:36: this dynamic salary retirement model
  • 03:40: so conditionals
  • 03:44: are very important in financial modeling
  • 03:47: as well
  • 03:47: as general programming you know
  • 03:51: if something is true then you want to do
  • 03:53: something or get some value
  • 03:57: and so we have the if function in excel
  • 04:00: which accomplishes that we can also use
  • 04:03: that
  • 04:04: in combination with other logical
  • 04:06: operators like
  • 04:07: and and or you know and so we can look
  • 04:10: at multiple different conditions
  • 04:12: at once in a single if statement
  • 04:15: um and
  • 04:18: let's look at some examples of how this
  • 04:20: works in excel
  • 04:22: so looking at how we would actually call
  • 04:25: the if function
  • 04:27: you know first we have our logical test
  • 04:30: so that's the condition that we want to
  • 04:34: determine
  • 04:34: whether it's true or false
  • 04:38: and so in my first example here i have
  • 04:41: if five equals five five does equal five
  • 04:44: that's true um and so
  • 04:48: uh we're going to go into then the value
  • 04:52: if true and so that's why uh here
  • 04:55: second argument we have the value of
  • 04:57: true and third we have the value if
  • 05:00: false
  • 05:01: and so what this function is doing is
  • 05:04: just
  • 05:05: if this condition is
  • 05:08: true then it's going to give you this
  • 05:11: value
  • 05:13: if it is false then it's going to give
  • 05:16: you the other value
  • 05:17: and so that's why this call here uh
  • 05:20: if 5 equals 5 it does it's going to give
  • 05:23: you this
  • 05:24: but then if we called it again if 4
  • 05:28: equals 5
  • 05:28: of course it does not that's false then
  • 05:31: it's going to give us
  • 05:33: that it's going to give us the other
  • 05:35: value here the value of false
  • 05:38: and so this if command is basically just
  • 05:41: allows us to choose from two different
  • 05:42: values based on some kind of condition
  • 05:46: and we'll definitely look at the
  • 05:48: applications of that as we go to build
  • 05:50: out the model
  • 05:53: then modulo is
  • 05:56: another function or concept which is
  • 06:00: used a lot in general programming
  • 06:03: it's you know probably not going to come
  • 06:05: up and you know just everyday
  • 06:07: financial modeling but it is i think
  • 06:09: very useful to build
  • 06:11: out this specific problem that we're
  • 06:13: looking at
  • 06:14: uh where we have the promotions coming
  • 06:17: every
  • 06:18: uh number of years uh the modulo is
  • 06:21: helpful to
  • 06:22: uh work with that so the modulo uh
  • 06:25: is basically just the remainder of doing
  • 06:28: division
  • 06:30: um and so you know if you think about
  • 06:34: three divided by four what's the
  • 06:35: remainder uh
  • 06:37: the remainder is three and so that's
  • 06:41: what uh this mod function is doing is
  • 06:44: just giving you the remainder
  • 06:45: of a division uh and then if you think
  • 06:49: you know seven over two what's the
  • 06:50: remainder of that
  • 06:52: uh that becomes uh three
  • 06:55: and one half and so one is the remainder
  • 06:58: from that um so it's just giving us the
  • 07:01: remainder
  • 07:02: and this is going to be useful for
  • 07:04: seeing you know how many years
  • 07:06: we have left until the promotion
  • 07:11: and then uh the other function we're
  • 07:14: looking at
  • 07:15: to help us build out this model beyond
  • 07:18: you know the basic ones that i would
  • 07:20: expect you to know just coming into the
  • 07:21: class
  • 07:22: is vlookup so vlookup
  • 07:27: is a little bit more advanced and it
  • 07:28: helps you find
  • 07:30: things in a table uh by the row
  • 07:34: so we can look at an example here uh we
  • 07:38: have a little table
  • 07:39: of uh you know four different
  • 07:43: um foods here and then in the second
  • 07:46: column
  • 07:47: we have the food group that that food
  • 07:49: belongs to it's either a vegetable
  • 07:52: or a fruit so uh
  • 07:55: with vlookup we can say you know we know
  • 07:59: we want to
  • 07:59: figure out whether celery is a fruit or
  • 08:03: a vegetable
  • 08:05: and so we can pass celery to
  • 08:08: vlookup and we give it the
  • 08:12: range of the table and then we say
  • 08:15: we want to look up the value from the
  • 08:17: second column
  • 08:19: and then that's going to give us
  • 08:21: vegetable
  • 08:22: um so um
  • 08:26: that's the basic idea you're just
  • 08:28: looking up a certain column's value
  • 08:30: by uh the first columns
  • 08:33: rows value um is
  • 08:37: how vlookup works
  • 08:41: and the lookup it does have to be the
  • 08:44: first
  • 08:45: column of the table or at least that you
  • 08:48: know the range
  • 08:49: that you're targeting here and you do
  • 08:53: have to sort
  • 08:54: the items in ascending order uh
  • 08:57: in order to ensure that you're going to
  • 08:59: get the correct lookup so those are the
  • 09:01: two
  • 09:02: kind of gotchas with using vlookup
  • 09:05: but basically you know you're just
  • 09:07: looking up something in a table
  • 09:10: uh by the first columns
  • 09:13: value
  • 09:18: so those are all the additional skills
  • 09:21: um and and patterns that we're thinking
  • 09:24: about as we go into building
  • 09:26: this more advanced dynamic salary excel
  • 09:29: model
  • 09:30: next uh video we're going to come back
  • 09:32: and actually
  • 09:33: build out that model so thanks for
  • 09:36: listening
  • 09:36: and see you next time

Implementing the Dynamic Salary Model


Notes

  • We are building this model from scratch as it is so different from the original

  • We can break this larger problem down into three sub-problems: determining salary over time, determining wealth over time, and determining when the individual can retire. Each of these become worksheets in the model

  • In the overall inputs, it is good to have sections if inputs are relevant only to individual sub-problems. Also reference over the inputs onto the individual sheet for both visual organization of having everything for the calculation on one sheet as well as keeping cell references shorter

  • =IF and =MOD combined can figure out whether it is a promotion year

  • A cumulative sum can be used to determine how many promotions have occurred up until a given point in time

  • Calculating factors helps split out the calculation and make it more clear

Transcript

  • 00:03: hey everyone
  • 00:04: nick dear british here teaching you
  • 00:06: financial modeling and today we're going
  • 00:08: to be talking about
  • 00:09: implementing a dynamic salary retirement
  • 00:12: model
  • 00:12: in excel as part of our lecture series
  • 00:15: on
  • 00:16: the depth of a financial model focusing
  • 00:19: on excel
  • 00:21: so we have been talking about this
  • 00:24: retirement model and we already
  • 00:25: implemented the simple
  • 00:27: retirement model with a static salary
  • 00:29: and now we're going to go to
  • 00:31: implement this one where the salary
  • 00:33: increases
  • 00:34: every certain number of years with a
  • 00:36: promotion and also increases annually
  • 00:38: with a cost of living
  • 00:40: raise so as we go to
  • 00:44: build our model um you know now this
  • 00:47: model is going to be larger than the one
  • 00:50: we looked at before
  • 00:52: and really we can break it down into
  • 00:53: multiple sub-models or sub-problems
  • 00:56: that we can tackle individually so
  • 01:00: the first sub-problem here is
  • 01:02: determining
  • 01:03: the salary in any given year as we go
  • 01:06: through time
  • 01:07: throughout this person's career
  • 01:10: and then the next is determining the
  • 01:13: wealth of this
  • 01:14: individual as they take that salary and
  • 01:16: save a certain portion of it
  • 01:18: and invest that and earn an investment
  • 01:20: return on that
  • 01:22: and then finally the retirement side of
  • 01:24: the model which
  • 01:25: looks at the wealth uh to determine when
  • 01:28: this person
  • 01:28: can actually retire um
  • 01:32: so we've got these three parts of the
  • 01:33: model and they're gonna become three
  • 01:35: separate worksheets here in the model um
  • 01:38: but when you have a model which has
  • 01:41: these multiple parts uh it's also good
  • 01:43: to have an overview page
  • 01:45: which gives you uh you know the main
  • 01:47: inputs and outputs
  • 01:48: from the model overall so let's go ahead
  • 01:52: and build out that inputs and outputs
  • 01:55: page
  • 01:57: so you could call it overview or you
  • 01:59: could call it inputs and outputs
  • 02:01: um or you know something along those
  • 02:04: lines which just says you know this is
  • 02:06: the main page this is the starting point
  • 02:07: for the model
  • 02:09: if you want to change things and have it
  • 02:11: flow through the model you change the
  • 02:12: inputs here
  • 02:14: and you'll see the outputs here as well
  • 02:18: so first i'm going to create the inputs
  • 02:20: section
  • 02:22: and for the purposes of going through
  • 02:24: this i'm not going to be really adding
  • 02:27: formatting for the most part to this
  • 02:31: when you look at the completed example
  • 02:33: on
  • 02:35: the site you will see that it has all
  • 02:37: the formatting in place so
  • 02:38: definitely you should be adding
  • 02:40: formatting to your models before you
  • 02:43: um you know present them to anybody
  • 02:46: but just in the interest of time we're
  • 02:49: going to focus here
  • 02:50: on you know actually building out the
  • 02:52: logic and the layout of the model
  • 02:54: uh and i'll leave it as an exercise for
  • 02:56: you to to add the formatting
  • 02:59: so uh in the inputs here uh you know
  • 03:02: it's good to be as
  • 03:04: clear as possible about you know what
  • 03:06: each input is about
  • 03:08: um and here you know we've got the three
  • 03:10: different parts of the model
  • 03:12: and so we can kind of separate the
  • 03:14: inputs into those three parts as well
  • 03:17: so we have the salary inputs
  • 03:21: for whatever inputs are going to go into
  • 03:23: ultimately determining that salary year
  • 03:25: over year
  • 03:27: so we have the starting salary
  • 03:30: um and we said yeah we can say that
  • 03:33: starts at sixty thousand
  • 03:35: um and then
  • 03:38: you know we we've been saying that um
  • 03:42: there's going to be you know every
  • 03:43: certain number of years there's to be a
  • 03:45: promotion
  • 03:46: for this individual they're going to get
  • 03:47: a certain raise
  • 03:49: so let's just start it out saying every
  • 03:52: five years
  • 03:52: they're going to get a promotion and you
  • 03:55: know that'll be an input to the model so
  • 03:56: we can adjust
  • 03:58: how quickly those promotions are going
  • 03:59: to come
  • 04:01: which would definitely make sense you
  • 04:02: know for people on different career
  • 04:03: paths
  • 04:04: uh plugging in numbers which are
  • 04:06: appropriate
  • 04:07: to their particular career how often
  • 04:09: they're going to get promoted and
  • 04:11: how big of a raise they're going to get
  • 04:12: upon promotions
  • 04:14: so then we have
  • 04:18: the cost of living raise is how much
  • 04:21: they're just getting annually year over
  • 04:23: year every year
  • 04:25: as a raise to compensate for inflation
  • 04:28: uh and then the uh promotion raise
  • 04:31: is going to be uh you know whenever one
  • 04:34: of those
  • 04:34: promotions occurs every five years or
  • 04:36: whatever the values of the inputs
  • 04:39: then they're gonna get that much of a
  • 04:41: raise in that year
  • 04:43: on top of the cost of living raise
  • 04:47: so those are the salary inputs and then
  • 04:50: we're going to have some inputs going
  • 04:52: into the wealth portion of the model
  • 04:55: so that's going to be the savings rate
  • 04:58: [Music]
  • 05:00: which will tell us you know out of that
  • 05:01: salary they're earning how much they
  • 05:03: actually
  • 05:03: invest and not just use on daily
  • 05:06: expenses
  • 05:07: and also the interest rate how much
  • 05:10: they're going to earn
  • 05:11: on the investment um
  • 05:14: and then we have the desired retirement
  • 05:18: inputs so that's just
  • 05:20: the desired cash of you know currently
  • 05:23: having that
  • 05:24: at 1.5 million dollars
  • 05:28: um so certainly we want to add all the
  • 05:30: number formatting
  • 05:31: and uh you know bold the the header
  • 05:34: areas and you know put this in a box and
  • 05:36: everything to kind of separate it but
  • 05:38: we'll leave it
  • 05:39: there for now you can take a look at the
  • 05:41: completed example for the formatting
  • 05:46: and then for our you know main outputs
  • 05:49: we're just going to have one output here
  • 05:52: it's going to be
  • 05:53: the years until retirement so we'll just
  • 05:56: you know put that placeholder there and
  • 05:59: then we're going to bring our main
  • 06:00: result to here
  • 06:01: at the end so that's the overview sheet
  • 06:06: um and this should really be the the one
  • 06:08: spot that your hard coding
  • 06:09: values is for your inputs here the rest
  • 06:12: uh everything is going to be
  • 06:14: cell references um
  • 06:17: so next we can go to build out the
  • 06:19: salary
  • 06:20: portion of the model
  • 06:24: so i'm going to create a new worksheet
  • 06:26: here in the model
  • 06:28: salary worksheet and in here
  • 06:32: we're going to figure out what is the
  • 06:33: salary in each year
  • 06:36: going through time um
  • 06:39: and i mentioned before how um you know
  • 06:42: as we
  • 06:43: you know have our more complex larger
  • 06:45: excel model and we're breaking it down
  • 06:47: into basically
  • 06:48: sub models of one per worksheet we also
  • 06:51: want to maintain that same
  • 06:53: input and output separation in
  • 06:56: the individual sub models or worksheets
  • 06:59: as well
  • 07:00: so i'm also going to create an input
  • 07:02: section on
  • 07:04: this worksheet which will just be
  • 07:06: bringing over
  • 07:07: those inputs from the
  • 07:11: main tab over here and because you know
  • 07:14: we already separated everything out
  • 07:16: really nicely over here it's easy just
  • 07:19: to
  • 07:19: reference over to the other tab um and
  • 07:22: then
  • 07:23: we can just drag it uh to be able to get
  • 07:26: all those values over here
  • 07:30: so now we have those same inputs coming
  • 07:33: to
  • 07:33: this tab as well
  • 07:38: and then we can go on to you know create
  • 07:40: a separate area which has
  • 07:43: the calculations for our salary um
  • 07:47: and there's you know two main reasons to
  • 07:49: bring those same inputs over here even
  • 07:51: though they were already
  • 07:52: defined over here uh so one
  • 07:55: is that then each uh you know sub
  • 07:59: each worksheet here each sub model is
  • 08:02: you know self isolated everything you
  • 08:05: need
  • 08:05: for that individual part of the problem
  • 08:08: is right here
  • 08:09: on this worksheet um and then the other
  • 08:12: part
  • 08:12: um is you know as you do calculations
  • 08:15: with these things you reference them
  • 08:17: here and you can see we just have you
  • 08:20: know b2
  • 08:20: as the reference there where as you look
  • 08:23: at these references
  • 08:24: it's inputs and outputs b3 inputs and
  • 08:27: outputs b4
  • 08:28: etc and so if you have these in all of
  • 08:31: your different calculations going
  • 08:32: through it actually becomes
  • 08:34: very difficult to read your calculations
  • 08:36: as you know the references become so
  • 08:38: long becomes difficult to tell what's
  • 08:41: going on
  • 08:41: so you can keep the formulas nice and
  • 08:45: short if you're referencing things
  • 08:46: only on the same tab in the calculations
  • 08:49: and these are just
  • 08:51: you know directly linking to those
  • 08:54: inputs
  • 08:54: from the main sheet
  • 08:57: um so we want to ultimately determine
  • 09:01: uh you know year over year what is the
  • 09:03: salary going to be
  • 09:05: um so we can start with uh year one
  • 09:09: and uh you know in excel if you type out
  • 09:12: a couple numbers in a row
  • 09:14: from there you can drag it it's going to
  • 09:15: be able to figure out the pattern
  • 09:18: um so we do that and
  • 09:22: then we're able to let's go a little bit
  • 09:24: uh further
  • 09:26: on that let's say go out to
  • 09:29: 40 years um
  • 09:32: so then we have our full you know one
  • 09:34: through 40
  • 09:36: different years to build out the
  • 09:38: different salaries
  • 09:40: and i think it's you know always a good
  • 09:43: idea in excel models
  • 09:45: to try and split out the calculations as
  • 09:48: much as possible you don't want to have
  • 09:50: really long cell formulas that's just
  • 09:53: going to become
  • 09:54: very difficult to understand what you're
  • 09:57: doing
  • 09:58: if you ever do have a long formula you
  • 10:00: want to make sure that you add a comment
  • 10:01: that explains
  • 10:02: what that formula is doing but it's even
  • 10:05: better if you can just
  • 10:06: make the comp each calculation very
  • 10:09: clear and straightforward
  • 10:11: and uh you know larger calculations are
  • 10:13: split across multiple cells
  • 10:16: so that it's much more clear without
  • 10:18: even having to add that
  • 10:19: comment so
  • 10:22: i'm gonna tackle uh figuring out the
  • 10:24: salary in a few steps here
  • 10:26: first is i'm gonna figure out is this a
  • 10:29: year
  • 10:30: where we're getting a promotion uh and
  • 10:32: then i'm gonna figure out
  • 10:34: how many promotions have we had up until
  • 10:36: this year
  • 10:38: and then uh figure out um
  • 10:41: you know the cost of living raises
  • 10:43: factor in the promotion raises to bring
  • 10:44: it all together to the
  • 10:46: salary so first
  • 10:49: let's think about is it a promotion
  • 10:52: year um and so for this
  • 10:55: you know i mentioned in the prior video
  • 10:58: that
  • 10:59: this is where the modulo uh becomes
  • 11:02: really useful uh because if we
  • 11:06: you know do equals mod of
  • 11:12: the year and then the promotions
  • 11:15: every number of years and make that a
  • 11:18: fixed reference
  • 11:20: um then as you drag this down and you
  • 11:22: look at it
  • 11:23: you'll see we go one two three four zero
  • 11:25: one two three four zero
  • 11:27: every year that uh
  • 11:30: it is actually a promotion here because
  • 11:32: it's every five years so year five year
  • 11:34: ten year fifteen
  • 11:36: every one of those is coming up as a
  • 11:38: zero
  • 11:39: so we know that it's a promotion year if
  • 11:42: the value we're getting here
  • 11:43: is zero and uh you know we can look
  • 11:47: at you know changing to a different
  • 11:50: number of promotion years let's say
  • 11:52: three
  • 11:52: now we can see that it's every three
  • 11:56: years we're getting a zero so this zero
  • 11:58: always tells us
  • 11:59: that we are in the promotion year
  • 12:03: um so i'll change that back and then
  • 12:07: we can see that we just need to build
  • 12:11: one additional step on this to be able
  • 12:13: to tell
  • 12:14: is this a promotion year
  • 12:18: so that additional step is we can add an
  • 12:20: if
  • 12:22: function around that um
  • 12:25: so remember if we think about a logical
  • 12:28: condition
  • 12:28: and then if that logical condition is
  • 12:31: true we're going to get one value
  • 12:32: if it's false we're going to get the
  • 12:34: other value so the condition that we can
  • 12:36: make here
  • 12:37: is is this calculation that we did we've
  • 12:40: just been looking at
  • 12:41: is that value equal to zero
  • 12:45: uh because we know if it's equal to zero
  • 12:48: then that is the promotion here right
  • 12:51: and so if
  • 12:52: it's equal to zero aka if this is a
  • 12:55: promotion year
  • 12:56: then we want to put a one because one
  • 12:58: can represent
  • 12:59: true easily and we can use
  • 13:03: zero to represent false
  • 13:06: so then with that
  • 13:10: do that and we can double click to
  • 13:13: complete that
  • 13:14: all the way down and now you'll see it's
  • 13:17: giving us a one
  • 13:18: in those promotion years and it's giving
  • 13:20: us a zero otherwise
  • 13:22: and if we change this um to a different
  • 13:25: number every two years now we have every
  • 13:28: two years we're getting that it's
  • 13:30: a promotion year um
  • 13:34: so now we know which years we're getting
  • 13:37: the promotions
  • 13:39: um but if we go back to you know the
  • 13:42: formula
  • 13:43: that we're trying to implement here um
  • 13:46: we don't need to know uh as far as this
  • 13:50: formula is concerned
  • 13:52: uh you know whether it's promotion year
  • 13:54: what we need to know is
  • 13:55: how many promotion years have occurred
  • 13:58: up until this point in time so that's
  • 14:01: what this p
  • 14:02: in this formula is representing so then
  • 14:05: the next step
  • 14:06: is then to figure out the number
  • 14:09: of promotions that have occurred
  • 14:12: up until that point
  • 14:17: and so um
  • 14:21: we can do a very common pattern in excel
  • 14:24: here to determine this
  • 14:27: and that's what's called a cumulative
  • 14:28: sum so that's just
  • 14:30: you know summing up from wherever you're
  • 14:33: starting
  • 14:33: up until the end of the range as you
  • 14:36: drag it down
  • 14:38: and so the way you do that is with the
  • 14:39: regular sum
  • 14:41: function but here we're going to sum
  • 14:45: from the first number to the first
  • 14:48: number um and that sounds like wait why
  • 14:51: would we sum
  • 14:52: from something to itself what was the
  • 14:54: point of doing that
  • 14:55: uh it's because we're going to make the
  • 14:58: beginning of that sum range a fixed
  • 15:00: reference while leaving the other one
  • 15:03: as a relative reference and what that
  • 15:06: allows that to do
  • 15:08: is when we complete this down we can see
  • 15:11: that
  • 15:11: as soon as we get a promotion it goes up
  • 15:14: each time we hit a promotion it goes up
  • 15:16: and then it keeps adding to that
  • 15:18: and that's because if we look at what
  • 15:20: happened in one of these individual
  • 15:22: calculations
  • 15:23: that the bottom of the sum range keeps
  • 15:26: moving because it's a relative reference
  • 15:27: while the top stays fixed and so it's
  • 15:30: going to be adding
  • 15:32: whatever has occurred up into the point
  • 15:34: the uh
  • 15:35: the sum range just keeps increasing as
  • 15:37: we go year over year so it's a
  • 15:39: cumulative
  • 15:40: sum so then with that
  • 15:43: we know in any given year how many
  • 15:45: promotions have occurred
  • 15:47: up until that year
  • 15:52: so um now that we have figured out the
  • 15:55: promotions
  • 15:56: piece uh now we can turn our attention
  • 15:59: to
  • 16:00: um you know thinking back to this
  • 16:03: formula we split it down into three
  • 16:04: parts the initial salary
  • 16:06: um times the
  • 16:10: what we can call here the cost of living
  • 16:12: factor
  • 16:14: is this portion times what we can call
  • 16:17: the promotion
  • 16:18: factor and so now we can go and
  • 16:20: calculate
  • 16:21: each of these two pieces as individual
  • 16:24: factors
  • 16:25: and that's part of what i'm talking
  • 16:26: about in splitting up your calculation
  • 16:29: in excel
  • 16:29: it's certainly possible to just go and
  • 16:31: do this all in a single cell
  • 16:33: but it's going to be difficult to
  • 16:35: understand what you're doing
  • 16:37: so splitting the calculation up it
  • 16:39: becomes a lot more clear
  • 16:41: and you can you know analyze individual
  • 16:43: parts of the calculation a lot easier
  • 16:45: and
  • 16:46: ensure that it's working properly
  • 16:49: um so we're going to calculate the cost
  • 16:52: of living factor and that is you know
  • 16:55: simply what you saw
  • 16:57: in the equation it's just one plus the
  • 17:01: cost of living race
  • 17:02: i'm going to make that a fixed reference
  • 17:04: because we want it to always be that
  • 17:06: particular cell
  • 17:08: and then i'm going to take that to the
  • 17:10: power of the current
  • 17:11: year and that one we do want to be
  • 17:14: relative
  • 17:15: so it can move down over time
  • 17:18: um so then we see um you know
  • 17:21: from these costs of living raises
  • 17:24: basically by 40 years
  • 17:25: you're gonna be making more than double
  • 17:27: your initial salary
  • 17:29: just on the basis of having two percent
  • 17:31: inflation
  • 17:32: each year
  • 17:36: then we can go and calculate
  • 17:39: the promotion factor
  • 17:43: so for the promotion factor it's going
  • 17:45: to be a similar format
  • 17:47: uh one plus the um
  • 17:50: the promotion raised this time instead
  • 17:53: of the cost of living raise
  • 17:54: uh but now we're going to take it to the
  • 17:56: power of the number of promotions
  • 17:58: that have occurred up until that point
  • 18:01: uh and that one we do want to move down
  • 18:04: with us so then we can see you know in
  • 18:06: the first
  • 18:07: four years where there hasn't been a
  • 18:08: promotion yet it's not going to
  • 18:10: ultimately change the salary it
  • 18:12: multiplies it by one
  • 18:14: but as soon as we get a you know our
  • 18:16: first promotion a fifteen percent raise
  • 18:18: now it's multiplying it by one point one
  • 18:20: five and so that's a fifteen percent
  • 18:22: raise and we see every five years of
  • 18:24: that factor goes up
  • 18:25: representing that we got a raise
  • 18:28: and so we can see you know if every five
  • 18:31: years you get a 15 percent
  • 18:33: uh promotion uh then you're going to be
  • 18:36: making three times
  • 18:37: as much as when you started after 40
  • 18:41: years
  • 18:42: just based on those promotions alone
  • 18:46: and so then we can
  • 18:49: put those two things together remember
  • 18:51: that in the formula they were just
  • 18:53: multiplied together
  • 18:55: and so i added that here just multiply
  • 18:58: the two together
  • 18:59: both relative to get the total factor
  • 19:03: so then we can see you know with the
  • 19:05: inflation
  • 19:06: as well as the promotions by 40 years
  • 19:09: we would be making close to seven times
  • 19:12: what the initial salary was
  • 19:17: so then the last step here is just to
  • 19:19: actually calculate that salary
  • 19:22: and uh for that then
  • 19:26: um it's just putting everything together
  • 19:29: um so you know we already put
  • 19:32: um the
  • 19:35: uh each of these two factors and we just
  • 19:38: multiplied them together
  • 19:39: into a single number um as the total
  • 19:42: factor
  • 19:43: and so now we just have to multiply that
  • 19:45: by the initial
  • 19:46: salary um so we're just going to take
  • 19:50: the initial salary and make that a fixed
  • 19:53: reference
  • 19:53: it's the same for each one of these and
  • 19:56: multiply it
  • 19:57: by the total factor as a relative
  • 19:59: reference which is going to come down
  • 20:01: with us so we do that and so we see
  • 20:04: you know starting at a 60 000 salary 40
  • 20:07: years later
  • 20:08: you would then be making 400 000 based
  • 20:12: off of these numbers
  • 20:15: so that's the salary portion of the
  • 20:18: model
  • 20:19: and then we can move on to building out
  • 20:21: the wealth
  • 20:22: portion of the model next so
  • 20:26: in the wealth portion of the model
  • 20:30: we're now going to be using this salary
  • 20:33: that we calculated
  • 20:35: year over year to ultimately
  • 20:38: figure out the wealth in any given year
  • 20:44: so you know again with all these
  • 20:47: sub models we're going to have our own
  • 20:50: uh
  • 20:50: individual input section and as part of
  • 20:54: this
  • 20:54: we're actually going to be bringing over
  • 20:56: this entire column
  • 20:58: of the salary year over year um and so
  • 21:02: you know that's not going to fit well
  • 21:05: into this inputs box
  • 21:06: you know it'd be nice just to have it as
  • 21:08: part of our our table of calculations
  • 21:10: and so what i like to do in those cases
  • 21:13: is i just put a note
  • 21:15: that salaries are computed on the salary
  • 21:18: tab
  • 21:20: then reference here
  • 21:23: and you know that's just saying you know
  • 21:26: we're going to have the salaries going
  • 21:27: through here
  • 21:28: it just makes it very clear to the
  • 21:29: consumer of the model
  • 21:31: that those were calculated over here and
  • 21:35: it is a lot clearer how everything fits
  • 21:36: together
  • 21:38: so then the other things that we'll want
  • 21:40: to bring over
  • 21:41: for this are the starting salary
  • 21:45: we can get that from here as well
  • 21:49: as then we can
  • 21:52: reference the wealth specific inputs the
  • 21:55: savings rate
  • 21:57: and the interest rate
  • 22:02: so then we
  • 22:07: have our input section and we can go on
  • 22:09: to do
  • 22:10: the wealth calculations um
  • 22:14: so we're gonna again have you know
  • 22:18: calculations year over year so you can
  • 22:20: either redo the same thing with the time
  • 22:22: or
  • 22:23: i'm just gonna go ahead and reference
  • 22:26: this column here to get each of those
  • 22:30: years
  • 22:35: and then we also need to bring over the
  • 22:38: salary from the other tab
  • 22:41: so now i'm going to reference that over
  • 22:44: to the salary
  • 22:45: over here so now we have the salary year
  • 22:49: every year on this tab as well and it's
  • 22:50: very clear that that was
  • 22:52: calculated on the other worksheet and
  • 22:54: brought over to here
  • 22:58: so then there's kind of two steps here
  • 23:01: and calculating
  • 23:03: the wealth so the first is seeing
  • 23:06: you know how much did this person save
  • 23:10: in this particular year and then the
  • 23:12: other is applying the
  • 23:13: investment return to the existing
  • 23:16: portfolio as well as
  • 23:17: the new savings or to the existing
  • 23:21: portfolio and then adding the new
  • 23:22: savings to come up with the wealth
  • 23:24: in that given year um
  • 23:28: so um next we can calculate the amount
  • 23:32: saved
  • 23:33: and so the amount saved is simply going
  • 23:36: to be
  • 23:37: the salary earned in that year times
  • 23:40: the savings rate and we want it to be
  • 23:42: fixed to the savings rate
  • 23:44: as we always want to use the same
  • 23:45: savings rate
  • 23:47: so we complete that and then we have the
  • 23:51: amount saved year every year and then we
  • 23:54: can go to calculate the
  • 23:56: well so the wealth
  • 23:59: in the first year here would be
  • 24:02: just we don't have anything in the
  • 24:04: portfolio yet so it's
  • 24:05: just uh the amount that they saved and
  • 24:08: then it's going to be invested
  • 24:09: over the following year so then
  • 24:13: going forward after that it's always
  • 24:16: going to be taking
  • 24:17: the prior wealth and it's going to be
  • 24:20: multiplying that
  • 24:22: by one plus the interest rate
  • 24:26: and we want that to be fixed always use
  • 24:28: the same interest rate
  • 24:30: and then we're going to also add in the
  • 24:32: amount that was saved in that year
  • 24:34: because that
  • 24:35: uh was just earned it hasn't been
  • 24:36: invested yet so that part doesn't earn
  • 24:38: the investment return
  • 24:40: until it's included in the following
  • 24:42: year um
  • 24:44: so then with that um that is the formula
  • 24:47: we need for the rest
  • 24:48: of this um and that will get us to
  • 24:52: ultimately uh this person earning 3.9
  • 24:55: million dollars
  • 24:56: in their portfolio for retirement by 40
  • 25:00: years from now with these basic
  • 25:02: inputs so then
  • 25:05: the last portion of this is then the
  • 25:08: retirement portion
  • 25:09: of the model so the retirement portion
  • 25:14: of the model um is about
  • 25:18: uh figuring out when this person can
  • 25:21: retire based off of the wealth they've
  • 25:23: accumulated and how much cash they need
  • 25:25: in retirement um so we can again you
  • 25:29: know make our input section as always
  • 25:31: and here we're going to need the wealth
  • 25:33: year over year
  • 25:34: to determine this so i'm going to again
  • 25:37: um
  • 25:38: you know put a note like i did on the
  • 25:40: other tab that
  • 25:41: you know we can't fit all the will the
  • 25:43: wealth up in this corner
  • 25:45: um and so we're just going to say that
  • 25:47: wells are
  • 25:48: computed
  • 25:51: on the wealth tab then referenced here
  • 25:57: um and then the only other input that
  • 26:00: we're going to
  • 26:01: need is the desired cache so we'll bring
  • 26:04: that
  • 26:05: over as well
  • 26:09: and then uh we can
  • 26:13: then make the area for the calculations
  • 26:16: retirement calculations
  • 26:18: um and
  • 26:22: um so
  • 26:25: here um we can
  • 26:29: you know go ahead and and bring over the
  • 26:31: time
  • 26:32: um you know like we did for the weld tab
  • 26:36: reference it um from the other tab or
  • 26:38: you could
  • 26:39: you know just do the same completion
  • 26:41: thing that
  • 26:43: we did to create the
  • 26:46: time column in the first place here
  • 26:49: going up to
  • 26:51: 40 years
  • 26:54: so then
  • 27:00: we need to
  • 27:03: [Music]
  • 27:05: basically we need to bring over the
  • 27:07: wealth next
  • 27:08: um so there again we're just going to
  • 27:10: reference over to
  • 27:12: the other tab and bring that over
  • 27:17: and then we want to
  • 27:21: figure out in any given year is this
  • 27:24: person
  • 27:25: able to retire and the condition to be
  • 27:28: able to retire
  • 27:29: is that we have saved enough money right
  • 27:32: that we
  • 27:32: have a wealth greater than the desired
  • 27:36: cash
  • 27:37: so again we can represent that
  • 27:41: with an if statement here so if
  • 27:44: the wealth in that year is greater than
  • 27:48: the desired cash the fixed desired cash
  • 27:51: that we use every year
  • 27:53: uh then one is going to represent
  • 27:57: yes we can retire and xero
  • 28:00: cannot retire um so then we complete
  • 28:03: that
  • 28:05: and we should see right after we cross
  • 28:07: over that 1.5 million threshold indeed
  • 28:10: it says we can then retire so this is
  • 28:12: saying after 28 years
  • 28:15: then this person can retire
  • 28:20: so then
  • 28:24: there's just you know basically we have
  • 28:26: our main result here
  • 28:28: but we want to be able to get you know a
  • 28:30: single number
  • 28:31: coming over onto the inputs and
  • 28:34: outputs tab
  • 28:37: and so then this last part
  • 28:42: you may have noticed uh that
  • 28:45: i left this first column intentionally
  • 28:48: blank here
  • 28:49: and that's because i was planning on
  • 28:51: doing a vlookup
  • 28:52: on this table to determine uh
  • 28:56: the the row in which uh
  • 28:59: they first are able to retire
  • 29:03: um and so for that
  • 29:06: um i can uh
  • 29:09: you know the issue with you know using
  • 29:11: vlookup with
  • 29:12: you know this kind of column is it goes
  • 29:14: from zero and then it goes to one
  • 29:16: and so if you uh you know want to look
  • 29:19: up
  • 29:19: the one you know it should be this one
  • 29:21: but um
  • 29:23: you know it could be more direct to
  • 29:27: uh figure out the number of years that
  • 29:29: they've been retired
  • 29:30: uh which would just be a cumulative sum
  • 29:34: so again that same pattern of you know
  • 29:37: from the
  • 29:38: first cell to itself but the first part
  • 29:42: of that
  • 29:42: is going to be fixed and then we can
  • 29:45: complete that down
  • 29:48: and then we can see that starts to count
  • 29:50: up after this person is able to retire
  • 29:52: and so that if we try to look
  • 29:54: up the row that has a one we can be
  • 29:56: certain that it's going to be this row
  • 29:59: 28 years which is the first year that
  • 30:01: they're able to
  • 30:02: retire so then the last part
  • 30:05: is then just coming over to the
  • 30:08: uh you know main inputs and outputs tab
  • 30:11: and we're going to actually write
  • 30:12: the vlookup function
  • 30:16: and so here um we want to look up the
  • 30:19: value
  • 30:20: 1 right we were talking about the number
  • 30:22: of years retired
  • 30:23: as soon as that hits one they have
  • 30:25: retired in that year
  • 30:27: um and then we want to
  • 30:30: look at the retirement table
  • 30:34: so i'm gonna go and
  • 30:37: uh you know reference this table here
  • 30:40: and we really only need the first two
  • 30:43: uh columns because we're trying to look
  • 30:45: up the
  • 30:47: uh year value here
  • 30:50: we don't care about the other values for
  • 30:52: this lookup
  • 30:54: and then we want to get the second
  • 30:57: columns value right the column which has
  • 31:00: the year in it so we do that
  • 31:03: and then we can see that we indeed get
  • 31:05: 28 as
  • 31:06: our result um so that way you know we
  • 31:09: have everything on one tab
  • 31:11: that allows us to easily say you know
  • 31:13: what if
  • 31:14: i could uh you know get a better job
  • 31:16: starting out and start out at seventy
  • 31:18: thousand dollars
  • 31:19: oh well that changes the years to
  • 31:21: retirement now to 26 years
  • 31:24: so um and then you can look at the other
  • 31:27: tabs you see
  • 31:28: everything you know the salary came
  • 31:30: through it changed all the salaries over
  • 31:32: here and that came through to changing
  • 31:34: the wealth over here
  • 31:36: and we can see the retirement all the
  • 31:38: calculations have changed here
  • 31:41: and so everything flows through the
  • 31:42: entire model to ultimately get us to our
  • 31:45: main answer here
  • 31:47: um and structuring our model in this way
  • 31:50: makes it really easy for someone who is
  • 31:52: not familiar with all the inner workings
  • 31:54: of this model to just come in
  • 31:56: and play around with it and think about
  • 31:59: you know different values for all of
  • 32:01: these inputs
  • 32:02: uh you know whatever makes sense uh for
  • 32:05: their situation
  • 32:06: and they can just see the result uh very
  • 32:08: easily without having to
  • 32:10: get into the details of how this model
  • 32:12: is implemented
  • 32:14: but if they do need to dig into that you
  • 32:16: know say
  • 32:17: uh you know this is someone coming and
  • 32:19: they want to
  • 32:20: you know build out a better wealth
  • 32:22: assumption they want to you know build
  • 32:24: in
  • 32:24: uh you know recessionary and
  • 32:26: expansionary periods and have the
  • 32:28: uh you know investment returns respond
  • 32:30: to that then you know they can focus
  • 32:32: just on this wealth tab and they don't
  • 32:34: have to worry about
  • 32:36: how the salaries are being determined
  • 32:38: and how the retirement is being
  • 32:39: determined
  • 32:40: they can just work on the wealth portion
  • 32:42: and that makes it a lot easier because
  • 32:44: you can just focus on this one
  • 32:46: sub model rather than having to think
  • 32:48: about how everything fits together
  • 32:51: by having very clear inputs and outputs
  • 32:53: from each
  • 32:54: sub model it is a lot easier to maintain
  • 32:57: the model
  • 32:58: going forward so
  • 33:01: that wraps up the content for
  • 33:04: our section on the depth of a financial
  • 33:07: model
  • 33:08: and implementing that in excel and we're
  • 33:11: just going to come back to discuss
  • 33:12: the lab exercise to conclude this
  • 33:15: section of the material
  • 33:17: so thanks for listening and see you next
  • 33:21: time

Lab Exercise


Notes

  • Feel free to work from the example model though I would recommend you build that out yourself following the prior videos

  • The new calculation being added is simple, with the main focus being adding new functionality to an existing model and keeping it organized

  • Hint: if you cut the desired cash cell (Ctrl/Cmd + x), you can move it from the inputs into a calculation area and retain all the references to it

Transcript

  • 00:03: hey
  • 00:03: this is nick duraburtis here teaching
  • 00:05: you financial modeling
  • 00:06: and today we're going to talk about the
  • 00:08: lab exercises for
  • 00:10: the segment of the course on the depth
  • 00:12: of a financial model
  • 00:14: focusing on extending a simple
  • 00:16: retirement model in excel
  • 00:19: uh so there's just one lab exercise here
  • 00:22: uh to go along with this lecture um
  • 00:26: and so that is then extending even a
  • 00:28: little bit further
  • 00:29: beyond what we built out in the prior
  • 00:33: video
  • 00:34: of this dynamic salary retirement
  • 00:37: model so i would highly recommend that
  • 00:40: you follow along
  • 00:41: with the previous videos and you build
  • 00:44: that
  • 00:45: all out yourself following the video
  • 00:49: and then you can continue to add on that
  • 00:52: with this
  • 00:52: lab exercise you can also
  • 00:56: you know download the existing one and
  • 00:58: work off of that for this
  • 00:59: if you know the initial exercise was was
  • 01:02: that basic
  • 01:03: for you that you don't feel that you
  • 01:04: need to go through that
  • 01:07: but either way that you want to go on
  • 01:09: this
  • 01:11: and so you know the main focus here is
  • 01:13: that the new calculation that we're
  • 01:15: gonna do here
  • 01:16: is you know pretty straightforward um
  • 01:19: here
  • 01:19: you know it's just instead of uh saying
  • 01:22: that there's
  • 01:22: you know we need 1.5 million dollars
  • 01:25: where did that not
  • 01:26: number come from we don't know we just
  • 01:27: need that much instead it's
  • 01:30: uh now we want to spend a certain amount
  • 01:33: of cash
  • 01:34: each year in retirement that's going to
  • 01:36: become an input
  • 01:38: and we're going to live for a certain
  • 01:40: number of years
  • 01:42: in retirement um
  • 01:45: so then considering those numbers uh how
  • 01:50: long uh or how much money then do you
  • 01:53: need
  • 01:54: to retire and working that into the
  • 01:56: model
  • 01:57: such that everything flows through now
  • 01:59: desired cash is no longer
  • 02:01: an input to the model but it's actually
  • 02:04: an intermediate output
  • 02:05: of the model um so this exercise
  • 02:09: is mostly about just being able to take
  • 02:11: an existing model
  • 02:13: and extend it uh and have everything
  • 02:16: flow through
  • 02:17: without you know breaking anything and
  • 02:19: you know keeping everything
  • 02:20: organized so one nice hint
  • 02:24: here that will help you out with this is
  • 02:27: that you know right now you have desired
  • 02:30: cache as an input you want it to become
  • 02:32: an
  • 02:33: output but you want everything to stay
  • 02:35: linked together
  • 02:36: you know you don't want to have to redo
  • 02:38: how
  • 02:39: uh you know we're ultimately determining
  • 02:41: the year
  • 02:42: uh that they retire you know that part
  • 02:44: should still work the same even if now
  • 02:47: desired cash becomes a calculated value
  • 02:49: rather than an inputted value
  • 02:52: so the way that you can move that over
  • 02:55: is if you actually cut the cell which
  • 02:58: has that
  • 02:59: so that's you know control x on windows
  • 03:01: command x
  • 03:03: on mac and then you paste it somewhere
  • 03:06: else
  • 03:06: that will move the cell and move
  • 03:09: also all the references to that cell so
  • 03:12: you can move the cell
  • 03:14: and have the model work exactly like it
  • 03:16: did before because all the references
  • 03:18: move at the same time so that allows you
  • 03:21: to then
  • 03:22: move that cell from the inputs to the
  • 03:24: outputs
  • 03:25: for your organizational purposes very
  • 03:28: easily
  • 03:29: and then from there you can then
  • 03:32: actually
  • 03:33: change it so that instead of just
  • 03:35: inputting that value
  • 03:36: it's the result of doing a calculation
  • 03:40: [Music]
  • 03:41: so then you're able to easily you know
  • 03:44: not really have to change anything in
  • 03:46: the existing model it will all just keep
  • 03:48: working
  • 03:48: you just then add on this part to do
  • 03:51: this additional calculation
  • 03:52: to determine the desired cache
  • 03:57: so that's the idea behind the
  • 04:00: lab exercise um so please uh work on
  • 04:03: that and and complete that
  • 04:05: uh this week and then we will also be uh
  • 04:08: having a
  • 04:09: lab session where you can uh work on
  • 04:11: that
  • 04:12: and ask questions as well
  • 04:15: so that concludes our segment on the
  • 04:17: depth of a financial model
  • 04:19: and focusing on excel
  • 04:22: and the next segment we're going to be
  • 04:25: looking at
  • 04:26: some basics in python so that we can
  • 04:28: work up to implementing the same model
  • 04:30: in python as well so thanks for
  • 04:33: listening
  • 04:34: and see you next time