Long-Term Investing for IT Professionals: How the S&P 500 and Compound Returns Work
In the first part of our financial education series with Eclectica Capital, we explored why financial planning should begin with defining an investment horizon. In our second conversation, we discussed the impact of inflation on savings, financial reserves, and capital preservation.
Now we move to the next level: money you don't need in a year, or in five, but in twenty or thirty years.
We spoke with Ognjen Kapor, Executive Director of Eclectica Capital, about long-term investing in the S&P 500, what a time horizon is worth, why engineering instinct works against you here, and how the tax exemption after ten years works.
From capital preservation to long-term wealth
In the previous conversation we heard that a money market fund is not an investment, and that growth is built on other levels. So where does growth begin?
"A money market fund solves one specific problem - making sure the money you need to keep available doesn't lose value. It doesn't solve the other, much bigger one: how to turn savings into something that will matter in twenty or thirty years.
That takes a different instrument, a different horizon and - this is the part that rarely gets mentioned - a completely different kind of discipline. Not the discipline of setting money aside; as we saw in the previous conversation, the IT community is already good at that. The discipline of not touching what you've set aside."
Let's start with the instrument. What has the market actually delivered?
"Over the past thirty years, the US S&P 500 index - the five hundred largest companies on the US market - has delivered an average annual return of around 10.3%, with dividends reinvested. But that number is misleading unless three things are said alongside it:
- It's an average, not an annual rhythm. Those thirty years included 2000, 2008 and 2020. A drop of 30–50% is not an exception - it's the price you pay for that average.
- It's a nominal return in dollars. In real terms, after US inflation, it was closer to 7%.
- The past doesn't guarantee the future. No law says the next thirty years have to look like the last thirty."
What happens when you invest 10% of your salary over thirty years?
What does that look like in practice? Let's take the same salaries as last time.
"The same rough salary bands - $2,000, $3,000 and $4,000 net per month - and the same rule of setting aside 10%. Now we add a third dimension: time.
A few assumptions, to be clear. All amounts are in dollars, because both the index and the funds that track it are dollar-denominated. As before, the salary bands are illustrative round numbers, not figures from any specific survey. The contribution stays fixed for the whole period - $200, $300 and $400 a month. We deliberately left out salary growth, even though there will probably be some; it's better for the analysis to be conservative."
| Profile | 10 years | 20 years | 30 years |
|---|---|---|---|
| Junior ($200/mo) | $40,604 | $148,828 | $437,282 |
| Mid-level ($300/mo) | $60,906 | $223,241 | $655,923 |
| Senior ($400/mo) | $81,208 | $297,655 | $874,565 |
Source: Eclectica Capital.
How much of that is actually your money, and how much was earned by time alone?
Here's how it looks for a mid-level engineer:
| Horizon | Invested | Value | Of which returns | Multiplier |
|---|---|---|---|---|
| 10 years | $36,000 | $60,906 | $24,906 | 1.69× |
| 20 years | $72,000 | $223,241 | $151,241 | 3.10× |
| 30 years | $108,000 | $655,923 | $547,923 | 6.07× |
Source: Eclectica Capital.
"Look at the last column. The multiplier is identical for all three profiles - junior and senior get the same multiplier, just on a different base. In other words, the decision about your horizon is worth more than the decision about your seniority."

That's an interesting message for an industry where progress is measured in titles. Where does that difference actually come from?
"Mostly in the later years, and above all in the last decade. Between year ten and year twenty, the value doesn't just double – it almost quadruples. Between year twenty and year thirty, it almost triples. In dollar terms, the last decade adds more than the first two combined.
Why the engineering mindset can work against investors
Why would anyone stop something that works this well?
"Because the thirty years in that table assume one thing that is much harder to pull off than it looks on paper: that you didn't touch the position for those thirty years. Not when the market fell 40%. Not when someone on the internet explained why this time is different. Not when an opportunity came along that looked better.
Take March 2020. In five weeks the index fell around 34%. Anyone who sold then “to save what was left” missed the recovery - by August the market was already at a new high. The loss wasn't caused by the market, but by a decision.
This is the point where most articles about investing move on to strategies. I'd go in the opposite direction: the hardest part of the job is doing nothing."
Why would that be especially hard for IT professionals?
"Because professionally, you're used to solving problems by doing something - adjusting, optimising, refactoring. The instinct that makes you good engineers is exactly the one that makes you bad investors.
A portfolio isn't a system waiting for your fix. It's a system that works best when you leave it alone."
How passive investing in the S&P 500 works
So what does “doing nothing” look like in practice?
"That's the logic behind the passive, index-based approach:
- You don't pick individual companies. You buy the whole index. You don't have to be right about which company wins – it's enough for the market as a whole to grow over the decades.
- You don't pick the moment. You invest on the same date every month, regardless of the headlines. Sometimes you buy high, sometimes low; the average works for you.
- You don't react to a drop. A drop isn't a signal to act. It's a period in which the same monthly payment buys more units.
- You don't check too often. Checking your balance more than once a month does nothing except tempt you.
Automation is your ally here. A standing order that makes the payment without your involvement removes the only unreliable component of the system - the mood of whoever is making the decision that month."
You can't buy an index on its own. What do you actually buy?
"You buy funds that track it. The three largest, all denominated in dollars:
| Fund | Ticker | Annual fee | Note |
|---|---|---|---|
| Vanguard S&P 500 ETF | VOO | 0.03% | World's largest by assets |
| iShares Core S&P 500 ETF | IVV | 0.03% | Best index tracking |
| SPDR S&P 500 ETF Trust | SPY | 0.0945% | Oldest and most liquid |
Source: Eclectica Capital.
All three hold practically the same portfolio. The difference is in the costs - and it isn't trivial. A fee of 0.0945% instead of 0.03% looks like a rounding error, but on $100,000 over fifteen years the difference comes to several thousand dollars."
These funds are in dollars, but people here spend in euros and dinars.
"Exactly, and currency risk is not a footnote. If you spend in euros or dinars, the EUR/USD exchange rate feeds into your result - it can work for you or against you, and over thirty years that effect is not small. There are also euro-denominated versions of the same index. That's a conversation worth having before you open a position, not after."
Long-term investing and capital gains tax in Serbia
You mentioned that Serbian regulations also play a role in all this.
"They do, and it fits neatly with everything else.
In plain terms: the standard capital gains tax rate is 15%. After ten years of continuous holding - zero. It's worth pausing on that. Our tax system literally charges for impatience and exempts patience. Same position, same return - the only difference is whether you held on."
What's the catch?
"It's in the part that promotional materials usually skip, and without it the picture is wrong. The ten-year period is counted for each individual purchase (FIFO method), not from the date you started. If you invest monthly, every payment has its own clock. Here's what that means for a mid-level engineer investing $300 a month:
| Program length | Total gain | Tax-exempt | Share |
|---|---|---|---|
| 10 years | $25,405 | $500 | 2% |
| 20 years | $153,073 | $128,167 | 84% |
| 30 years | $553,304 | $528,398 | 95% |
Source: Eclectica Capital.
After exactly ten years of monthly investing, only the first payment has been held for a full ten years - practically the entire gain is taxable. The picture only turns around somewhere around year fifteen, and after twenty and thirty years it becomes dominant. That's why the effect is greatest with a one-off investment. If you have an accumulated amount and invest it all at once, the whole amount starts counting down the ten-year period on the same day, so after ten years the entire gain is exempt."
How much is that worth in concrete terms?
"Let's use the same example for every level - someone who has saved $10,000 and invests it all at once:
| Held | Value | Realized gain | Tax without exemption (15%) | Tax saved |
|---|---|---|---|---|
| 10 years | $26,654 | $16,654 | $2,498 | $2,498 |
| 20 years | $71,041 | $61,041 | $9,156 | $9,156 |
| 30 years | $189,350 | $179,350 | $26,903 | $26,903 |
Source: Eclectica Capital.
The point isn't that the amount is large in itself, but where it comes from: it's money that stays with you purely because you didn't touch the position. After thirty years, the tax saving is almost three times the initial investment."

Does that mean it's better to invest all at once than monthly?
"Purely in terms of tax optimisation - yes, and it's worth being precise here: a one-off investment uses this provision fully, while monthly investing uses it gradually and only over time.
In practice, most people don't have a large sum available, and monthly investing has its own advantages - an average entry price, discipline and less sensitivity to when you start. The best outcome, of course, is a combination: a one-off investment at the start with what you already have, and monthly payments on top of that.
Are alternative investment fund tax incentives relevant to IT professionals?
In this context, people often mention the tax credit for investing in alternative investment funds. Is that an argument?
"For most IT professionals - no, so let's put it in its proper place right away. Article 89a of the same law provides a tax credit of up to 50% of the amount invested in an alternative investment fund, capped so that the credit cannot exceed 50% of the assessed liability for annual personal income tax. There's also a condition that the investment units are not disposed of in the year of acquisition or in the following two calendar years.
The problem is who actually pays that tax. For income earned in 2025, the tax-free threshold is RSD 5,439,096. With the personal allowance of RSD 725,213, the liability effectively starts above roughly RSD 515,000 a month. And then comes the provision that is decisive for this topic: taxpayers under 40 get an additional deduction of the same amount, which effectively doubles the threshold - to roughly RSD 967,000 a month. The deduction applies to income from employment, self-employment and copyright."
What does that mean for people in the industry?
"Since the IT community in Serbia is predominantly under 40, it means something very concrete: the junior, mid-level and senior engineers from our matrix don't pay this tax, and this incentive gives them nothing. It only starts to work for a narrow segment - people earning over RSD 967,000 a month, or those over forty earning over RSD 515,000.
Useful, if it applies to you. But it's not a reason to invest - it's an administrative perk at the margin of the decision, not its substance. If someone presents this incentive to you as the main argument for long-term investing, the argument is weak."
The potential cost of waiting another five years
Why are you coming back to this topic right now?
"For two reasons, and I want to be open about both.
Eclectica Capital has received a licence from the Securities Commission of the Republic of Serbia for an alternative investment fund with an S&P 500 index-tracking strategy, which began operating on 12 November 2026. But everything we've said applies regardless of where and through whom someone invests - the index is the same, the maths is the same, and the discipline is up to you anyway.
The second reason is more important and has nothing to do with products or tax incentives: the only variable in everything we've described that you can't make up for later is time.
Take the mid-level engineer from our matrix. If they start today, after thirty years they'll have around $656,000. If they start the same plan five years later, after twenty-five years they'll have around $388,000. They invested only $18,000 less, but ended up with around $268,000 less.
You can make up for missed returns in some other year. You can't make up for the years."
Understanding the risks and limitations of long-term investing
What is this approach not?
"So there's no misunderstanding about what I'm claiming here:
- It's not a substitute for a liquidity reserve. Money you might need in the next twelve months has no business being on the stock market. That's what a money market fund is for, as we discussed in the previous conversation.
- It's not a guaranteed return. A ten-year investment can end in the red; that has happened in the index's history. The probability of a positive outcome rises significantly with the horizon, but it never becomes a guarantee.
- It's not for someone who can't stomach a drop. The biggest enemy of a thirty-year plan isn't the market, but panic selling in year twelve. If you know you couldn't hold on, a smaller position you'll keep is worth more than a bigger one you'll abandon."
Code is written in sprints; wealth is built in decades
What would you say to someone reading this who hasn't started yet?
"That code is written in sprints, and wealth is built in decades. That's the only real difference between the two disciplines - in everything else they're surprisingly similar: early choices carry disproportionate weight, and whatever you put off costs more than it seems.
The unusual thing is that this job doesn't require a skill you'd have to acquire. It doesn't ask you to read reports, follow the market, or make judgement calls. It only asks you to set up the system once and then not get in its way - which, it turns out, is the rarest skill of all.
Methodology and sources
Projections assume a fixed monthly contribution of 10% of net salary ($2,000 / $3,000 / $4,000 – illustrative, rounded figures) and an annual return of 10.3% compounded monthly, excluding fees, taxes, and currency effects. The 10.3% return represents the approximate average annual return of the S&P 500 index with dividends reinvested over the past thirty years. Past returns are not a guarantee of future results; the value of an investment can also fall.
Tax provisions: Law on Personal Income Tax, Article 72a(1)(5) (exemption from capital gains tax after ten years of continuous ownership) and Article 89a (tax credit for investment in an alternative investment fund). For 2025 income: tax-free threshold RSD 5,439,096, additional deduction of the same amount for taxpayers under 40, personal allowance RSD 725,213, rates of 10% and 15%. Fund fees as published by the issuers.
All projection amounts are in US dollars because the index and the funds tracking it are dollar-denominated; amounts relating to Serbian tax regulations are in dinars. Tax treatment depends on individual circumstances and is subject to change – consult a tax advisor before making a decision.
Disclaimer
Articles, analyses and reviews published on the website and blog of Eclectica Capital a.d. (the Company) are not marketing material and do not promote or offer any products or services. They are published to share the knowledge and experience of established professionals from Serbia and abroad, with the aim of developing the capital market and its participants.
The content represents general information and the personal views of the author and does not constitute investment advice, a recommendation, a public offer or an invitation to subscribe for, buy or sell financial instruments, investment units or fund shares within the meaning of the Law on Capital Market, the Law on Open-Ended Investment Funds with a Public Offering and the Law on Alternative Investment Funds.