Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add weekly investment plan #4347

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

mierin12
Copy link
Contributor

@mierin12 mierin12 commented Nov 15, 2024

Closes #1396
Closes #4330
Issue https://forum.portfolio-performance.info/t/intervall-von-sparplaenen/5655

Hello, this is a proposition to add weekly (and bi-weekly) intervals to investment plan.
What I call "bi-weekly" is every two weeks = every two Mondays/Tuesdays etc. This is different than twice a month.

I think "twice a month" is also a wished interval but it seems more complicated to do, and a workaround with two monthly plans is already possible. But there was no workaround for weekly or bi weekly intervals.

When an "each Monday" date is an holiday, the transaction is made on the next non-holiday date, and the following transactions are put back to "each Monday".
If the start date itself is on a holiday Monday, the first start date is offset in the same way, and the next transactions are kept on Mondays.

2024-11-15 23_01_10-

A test is added in InvestmentPlanTest.

I have also changed the items shown in the column Interval when you want to switch the interval :
Before :
2024-11-15 22_46_07-Portfolio Performance

After :
2024-11-15 22_52_28-Portfolio Performance

Internally, I used 100 and 200 for the weekly and biweekly interval integers since I believe there will never be an "every 100 months" interval. It is very easy to add an "every three weeks" interval if relevant.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Feature request: Weekly, Bi-weekly Interval (Investment Plan) Wöchentliche Buchungen für Sparplan
1 participant