<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Sambit Supriya Dash</title>
    <description>The latest articles on DEV Community by Sambit Supriya Dash (@samtherocket).</description>
    <link>https://dev.to/samtherocket</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4108638%2F379a8450-667a-4e70-90b6-c661c58f4012.jpg</url>
      <title>DEV Community: Sambit Supriya Dash</title>
      <link>https://dev.to/samtherocket</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/samtherocket"/>
    <language>en</language>
    <item>
      <title>I Built an Investment Simulator That Models the Journey - Not Just Compound Interest</title>
      <dc:creator>Sambit Supriya Dash</dc:creator>
      <pubDate>Tue, 08 Sep 2026 19:11:34 +0000</pubDate>
      <link>https://dev.to/samtherocket/i-built-an-investment-simulator-that-models-the-journey-not-just-compound-interest-a31</link>
      <guid>https://dev.to/samtherocket/i-built-an-investment-simulator-that-models-the-journey-not-just-compound-interest-a31</guid>
      <description>&lt;p&gt;Most investment calculators answer a beautifully simple question:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;“If I invest X every month at Y% for Z years, how much will I have?”&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;But an actual investment journey rarely behaves that neatly.&lt;/p&gt;

&lt;p&gt;What happens if you increase your SIP later?&lt;/p&gt;

&lt;p&gt;Pause contributions for a year?&lt;/p&gt;

&lt;p&gt;Invest a lump sum during the journey?&lt;/p&gt;

&lt;p&gt;Withdraw money midway?&lt;/p&gt;

&lt;p&gt;Rebalance the portfolio?&lt;/p&gt;

&lt;p&gt;Account for taxes?&lt;/p&gt;

&lt;p&gt;Or simply start the same plan at a different point in time?&lt;/p&gt;

&lt;p&gt;That was the problem that eventually became &lt;strong&gt;Investment Journey Simulator v4.4.4&lt;/strong&gt;, an open-source Python project and interactive web application.&lt;/p&gt;

&lt;h2&gt;
  
  
  Decisions compound too.
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fi15cxp2tyul6ttpane1n.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fi15cxp2tyul6ttpane1n.png" alt="Comparison of two 25-year investment journeys showing continuous contributions versus a 24-month pause after year 5, with final values of about ₹4.74 crore and ₹4.16 crore" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The simulator models contributions, SIP step-ups, pauses, lump sums, withdrawals, rebalancing, taxation and changing timelines as part of one investment journey rather than treating investing as a single compound-interest equation.&lt;/p&gt;

&lt;p&gt;One feature I particularly wanted was &lt;strong&gt;inflation-adjusted value&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;Because ₹1 crore twenty years from now may look impressive on the screen — but the more useful question is:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What will that ₹1 crore actually be able to buy?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Nominal wealth tells us how many rupees we may have.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Real wealth asks how much life those rupees can still afford.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The simulator therefore lets the future amount be viewed in today's purchasing-power terms rather than allowing a large nominal number to create a false sense of wealth.&lt;/p&gt;

&lt;h2&gt;
  
  
  The timeline matters too.
&lt;/h2&gt;

&lt;p&gt;Instead of looking only at one final year, I wanted to see the journey at multiple horizons.&lt;/p&gt;

&lt;p&gt;What does the portfolio look like after the early years?&lt;/p&gt;

&lt;p&gt;What changes around 5 years?&lt;/p&gt;

&lt;p&gt;10 years?&lt;/p&gt;

&lt;p&gt;15 years?&lt;/p&gt;

&lt;p&gt;25 years?&lt;/p&gt;

&lt;p&gt;And how does one decision made halfway through propagate through every later checkpoint?&lt;/p&gt;

&lt;p&gt;That makes it possible to compare not only:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Plan A vs Plan B&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;but also:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;the same plan at different moments in its life.&lt;/strong&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  When several decisions change at once
&lt;/h2&gt;

&lt;p&gt;Comparing two journeys gets harder when multiple things change together.&lt;/p&gt;

&lt;p&gt;If I pause contributions, make a withdrawal, and rebalance, measuring each change independently can double-count interaction effects and produce explanations that add up to more than the actual difference.&lt;/p&gt;

&lt;p&gt;For supported comparisons, the simulator therefore uses &lt;strong&gt;Shapley-based attribution&lt;/strong&gt;: it evaluates how each decision contributes across different combinations, then allocates the interaction effects so the individual contributions reconcile with the actual outcome gap.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why I open-sourced it
&lt;/h2&gt;

&lt;p&gt;I originally started this for a practical investing problem of my own, but it gradually became much more serious: a simulation engine, interactive Streamlit application, packaged Python project, validation framework and documentation set.&lt;/p&gt;

&lt;p&gt;The goal is not to tell anyone &lt;strong&gt;what to invest in&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;It is to make the consequences of investment decisions easier to explore before those decisions become real money.&lt;/p&gt;

&lt;p&gt;The current public release is:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Investment Journey Simulator v4.4.4&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;It is complete, validated and frozen while I collect real-world feedback.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;▶ Try the live simulator:&lt;/strong&gt; &lt;a href="https://investment-journey.streamlit.app/" rel="noopener noreferrer"&gt;LIVE APP&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;★ Source, methodology and validation:&lt;/strong&gt; &lt;a href="https://github.com/SAMtheROCKET/investment-journey-simulator" rel="noopener noreferrer"&gt;GITHUB&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;📖 Project site:&lt;/strong&gt; &lt;a href="https://samtherocket.github.io/investment-journey-simulator/" rel="noopener noreferrer"&gt;PROJECT SITE&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;⌨ Python package:&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;code&gt;pip install investment-journey-simulator&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;It's open source, and I would especially value criticism around the modelling assumptions.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What real-life investment decision do you think most financial calculators fail to model properly?&lt;/strong&gt;&lt;/p&gt;

</description>
      <category>python</category>
      <category>opensource</category>
      <category>fintech</category>
      <category>showdev</category>
    </item>
  </channel>
</rss>
