9
submitted 1 year ago* (last edited 1 year ago) by Agent641@lemmy.world to c/personalfinance@lemmy.ml

So i got into a disagreement with ChatGPT about whether you earn more interest overall if you contribute daily rather than monthly, if the overall contribution over 1 year is the same.

I made CGPT write some python code to prove it. His code is on the left. I still didnt believe him so I wrote my own, on the right.

Our results seem to disagree, so Im asking you guys, if your interest is calculated daily and paid monthly, is it better to contribute $143 per day for 365 days, or $4349.58 monthly for 12 months?

you are viewing a single comment's thread
view the rest of the comments
[-] evujumenuk@lemmy.world 1 points 1 year ago* (last edited 1 year ago)

Without starting to calculate, or looking at the code, I'd say it's obvious that an investment strategy where all of a month's contributions are made on the first day of the month will be superior to one where you spread them out. Also, an investment strategy of making the month's contributions on the last day will be inferior to spreading them.

So it'd really depend on how you time your monthly investments. If you can invest as soon as you get your monthly income, that's probably the most beneficial way to do it.

edit — Taking a quick look at your code, that's exactly what's happening. In each period, ChatGPT invests first, then lets interest accrue, whereas you let interest accrue, then invest.

this post was submitted on 11 Aug 2023
9 points (100.0% liked)

Personal Finance

3781 readers
1 users here now

Learn about budgeting, saving, getting out of debt, credit, investing, and retirement planning. Join our community, read the PF Wiki, and get on top of your finances!

Note: This community is not region centric, so if you are posting anything specific to a certain region, kindly specify that in the title (something like [USA], [EU], [AUS] etc.)

founded 1 year ago
MODERATORS