Simple Dividend Income Calculator (Early Beat)

petershk

Recycles dryer sheets
Joined
Jun 25, 2014
Messages
440
Hi all.
Since I'm trial running "early retirement" I got the urge to program something mildly useful and entertaining for myself.

Since I have consistent income on the brain I thought I'd take a stab at seeing what cash flow various investments would yield in different periods of time. (for example, what if I just held a 100% bond fund for 15 years... what would my monthly cash flow look like?).

I'm a "total return" investor, but I also love the feeling of dividends/distributions coming in on a somewhat reliable basis. There's a sense that if the dividends cover my living expenses I don't have to "do anything" and because I didn't sell any shares I get a (perhaps false) sense of victory... especially when markets are down.

That said, I didn't find any tool out there that could easily tell me the quarterly and monthly cashflow of various investments over specific time periods. Mostly the calculators tell you how much something appreciated (with dividends reinvested) or they tell you without, but the monthly cash flow was hard to visualize.

So I threw this together over the course of a couple of days.

http://www.divicalc.com/index.php

It's still super rough and not good at error handling. I have run through a bunch of different stocks, etfs and mutual funds and it SEEMs to work. I also sanity checked the returns by doing it manually (painful) so I THINK it's pretty accurate.

Throwing it out there to see if:
1) is this useful at all?
2) what could make it better (assuming yes to 1)?
3) Is there something that already does this that I missed (still had fun making it :) )?

What I would do Next.
-Be able to have 10 or so stocks with % allocation
-Do a forward looking monthly cashflow analysis (i.e. use dividends to go forward instead of just dividing by 12)
-include fees (fund expenses, taxes because of turnover, etc).
-pretty graphs (especially around the change in income flow).

I was pretty amazed, for example, that Wellsley (VWELX) had a pretty large drop in distributions in 2008... well I guess not amazed since that's expected... but it was REALLY big. So I can imagine if I had most of my money in that fund and suddenly have to sell shares to cover monthly costs... that could be psychologically tough.

VBFX (bond fund) on the other hand has a nice, smooth payout through the tough times... but you can see the monthly payments dropping quite a bit over time.

anyway... just thought I'd share.
 
It is useful. I often do this computation by hand on my holdings.

Worked for VIG.
Failed for VXUS and KO (Does not handle stock splits)

You should add ability to display 2 securities side by side so one can compare them.
 
Last edited:
Yeah. That's probably up next cause I do the same thing.

It doesn't handle splits yet but I figured out how to get the data. So next update will do that. Thanks for texting :)

Sent from my HTC One_M8 using Early Retirement Forum mobile app
 
I was pretty amazed, for example, that Wellsley (VWELX) had a pretty large drop in distributions in 2008... well I guess not amazed since that's expected... but it was REALLY big. So I can imagine if I had most of my money in that fund and suddenly have to sell shares to cover monthly costs... that could be psychologically tough.

anyway... just thought I'd share.

Start with 2007 and compare VIG, IVV and VWELX.

Only VIG had consistent raising dividend that one could rely on. I would imagine SCHD would have same characteristics.

I like VWELX but you can not count on its dividend going up year after year. As you said if you relied on VWELX distributions you would be forced to sell in down market.

BTW I am aware of this observation for a long time :) That is why I rather have goal of having enough VIG to live of off then for example VWELX. But it takes bigger pile of F-You money to build such portfolio :)
 
Last edited:
Start with 2007 and compare VIG, IVV and VWELX.

Only VIG had consistent raising dividend that one could rely on. I would imagine SCHD would have same characteristics.

I like VWELX but you can not count on its dividend going up year after year. As you said if you relied on VWELX distributions you would be forced to sell in down market.

BTW I am aware of this observation for a long time :) That is why I rather have goal of having enough VIG to live of off then for example VWELX. But it takes bigger pile of F-You money to build such portfolio :)

That's pretty interesting.
I got the split calculation working (I believe).
It's astonishing how varied the historical data quality is. For example:

Vanguard Total Stock Market ETF (VTI) Dividend Date & History - NASDAQ.com

show no dividend between 6/24/2008 and 3/25/2010, whereas

VTI: Dividend Date & History for Vanguard Total Stock Market

shows a very different payment schedule.

I'm using Yahoo data.. but since the dates and amounts vary (sometimes A LOT) it's pretty hard to fact check :p.

anyway, what I see with VIG and IVV is that from 2007-2016, total return on 1M is 742k and 685k respectively; but monthly average dividends between 2008 and 2009 drop from 1594 to 1521 for VIG vs a drop from 1574 to 1277 for IVV. That's quite a different monthly journey to a somewhat similar total return.

Does that match up with your calculations? Assuming you may have done them :p.

Early on in the development I had some pretty egregious programming errors that resulted in silly monetary results, but those are getting harder to find. Unfortunately small errors over long periods of time can be pretty painful!
 
anyway, what I see with VIG and IVV is that from 2007-2016, total return on 1M is 742k and 685k respectively; but monthly average dividends between 2008 and 2009 drop from 1594 to 1521 for VIG vs a drop from 1574 to 1277 for IVV. That's quite a different monthly journey to a somewhat similar total return.

Yes it matches my calculations. This is because VIG and SCHD are ETFs focused on high quality wide moat companies. Those companies did not cut dividends in 2008-2009. BTW SCHD did not exists in 2008.

They outperform in declines and slightly underperform in cyclical bull markets. One hopes that net result is positive.

IE last 2 years VIG did better then S&P in flat market environment. 2 Years before S&P did better.
 
Hey! I find this very useful and one more thing for me to play with ad-nauseum!

My only caveat--after a very quick review-- is that it combines dividends and cap gains into one percentage. That's fine if, like me you count them as the same, but for those looking for dividends alone in a fund that also pays cap gains, it could be misleading.

Otherwise, GREAT and Thanks!
 
Last edited:
This is cool. One nice feature you could add is to let you enter in the initial number of shares instead of initial principal.
 
I was looking up data on my T purchases. Since the calculator starts at the beg. of the year, the data is a bit off. There was a bit of a run up from 1/2012 to 8/2012. So maybe try to incorporate the actual purchase date.

Really cool tool, though.

cd :O)
 
Hey! I find this very useful and one more thing for me to play with ad-nauseum!

My only caveat--after a very quick review-- is that it combines dividends and cap gains into one percentage. That's fine if, like me you count them as the same, but for those looking for dividends alone in a fund that also pays cap gains, it could be misleading.

Otherwise, GREAT and Thanks!

Yeah that's annoying :(. I haven't found a good data source that separates them the way vanguard's site does. It's a hobby effort so I'm reluctant to buy high quality data... at least for now.

Sent from my HTC One_M8 using Early Retirement Forum mobile app
 
Cleaned up the formatting a bit and added total and annual return (I think the math is right).

Sent from my HTC One_M8 using Early Retirement Forum mobile app
 
Was also just looking at Altria's performance (MO) since 2001 and it's pretty insane.
in 2007 and 2008 they had a special distribution of 21.91 and 51.06 respectively, raising the monthly revenue on a 1M investment to 88k and 185k respectively. In the middle of 2008 that would have been insane extra cash to have lying around... Kinda rough on the taxes and MAGI though I guess :p.

Guess cigarettes are doing ok....
 
Was also just looking at Altria's performance (MO) since 2001 and it's pretty insane.
in 2007 and 2008 they had a special distribution of 21.91 and 51.06 respectively, raising the monthly revenue on a 1M investment to 88k and 185k respectively. In the middle of 2008 that would have been insane extra cash to have lying around... Kinda rough on the taxes and MAGI though I guess :p.

Guess cigarettes are doing ok....

I own it longer than that. I think that is spin off of Kraft and Philip Morris. :D Yea sometimes buy and hold works quite well.
 
Last edited:
I own it longer than that. I think that is spin off of Kraft and Philip Morris. :D Yea sometimes buy and hold works quite well.

Ahh that makes total sense.
So was that a taxable event or not?

I haven't found a good spin-off DB.

Sent from my HTC One_M8 using Early Retirement Forum mobile app
 
The changes look great. What about an option to do calculations based on reinvested dividends. I have to get through a project for a son's graduation, but maybe after next weekend, I'll have more time to play with it.

At least for the stocks/ETFs, I have entered the data looks reasonably correct. And so far, I feel pretty good about my account and choices.

Thank you!!!
cd :O)
 
I have a todo item to add ability to choose when dividend reinvest stops (to model retirement date) as well as potentially comparing reinvest vs not reinvest.

Lots of ways to go :).

I'm working on graph integration now which is worse than I expected.

Also... DW made the comment "wait... you are talking about ER and you're spending lots of time working on that?"

She gets it... just thinks it's funny :)

Sent from my HTC One_M8 using Early Retirement Forum mobile app
 
Pretty interesting tool. I track my dividend yield for my portfolio but since it's mostly broad index funds, the amount doesn't seem to change much.

I'm using Yahoo data.. but since the dates and amounts vary (sometimes A LOT) it's pretty hard to fact check :p.

Are you able to download data in bulk from Yahoo? or do you query on the fly?
 
So I calc'd my initial purchase that I made on 8/6/2012 manually and compared. Since the tool starts at the beginning of the year, I entered data in the tool starting from 2013. But, the price was actually lower, thus showing more dividends. Since my purchase in late 2012 included one dividend payment, the numbers weren't super far a part for my small purchase. The tool also shows a better return on share price. The 2013 price was around $35 but I bought around $37.

Final Score: Div Calc Return: 28.06%; Annualized: 8.59%
My manual Calcs: 21.57%; Annualized: 5.67%

(Note, I do re-invest my dividends, but my calculations like yours did not factor that in)

cd :O)
 
Petershk: Do you plan to put this tool somewhere on a website once it becomes fully realized? I have your link but not sure if that's the final site. I'd hate to lose this!
 
Petershk: Do you plan to put this tool somewhere on a website once it becomes fully realized? I have your link but not sure if that's the final site. I'd hate to lose this!

Yes. I set this up as a permanent site, so I plan on live development for as long as there is mutual interest from users and developer(s). Bookmark away :).
 
So I calc'd my initial purchase that I made on 8/6/2012 manually and compared. Since the tool starts at the beginning of the year, I entered data in the tool starting from 2013. But, the price was actually lower, thus showing more dividends. Since my purchase in late 2012 included one dividend payment, the numbers weren't super far a part for my small purchase. The tool also shows a better return on share price. The 2013 price was around $35 but I bought around $37.

Final Score: Div Calc Return: 28.06%; Annualized: 8.59%
My manual Calcs: 21.57%; Annualized: 5.67%

(Note, I do re-invest my dividends, but my calculations like yours did not factor that in)

cd :O)

Do you mind giving me your input dates, amounts and which stock? This is really helpful information. I've noticed quite a range of returns when I use various investment calculators, and also variation in underlying data which is a bit disturbing :p
 
Pretty interesting tool. I track my dividend yield for my portfolio but since it's mostly broad index funds, the amount doesn't seem to change much.



Are you able to download data in bulk from Yahoo? or do you query on the fly?

I query icharts case by case.

That said I'll probably setup a DB to cache the more popular requests. I know there's a rate limit on yahoo so if I start hitting that I'll either buy a data source or implement a caching system

Sent from my HTC One_M8 using Early Retirement Forum mobile app
 
Back
Top Bottom