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

Support --until=DATE besides --today #18

Open
basvandijk opened this issue Feb 1, 2023 · 2 comments · May be fixed by #19
Open

Support --until=DATE besides --today #18

basvandijk opened this issue Feb 1, 2023 · 2 comments · May be fixed by #19

Comments

@basvandijk
Copy link

Hey @peti, I'm using your hledger-interest tool and it's great!

Sometimes I would like to generate interest transactions for the previous month and have them dated on the last day of the month. However when I'm already in the new month the --today option generates a transaction for the current day which is too late.

For this situation it would be nice to have a --until=DATE option which works the same as --today instead that you can specify the date.

WDYT?

basvandijk added a commit to basvandijk/hledger-interest that referenced this issue Feb 5, 2023
This option is similar to the option `--today` except that instead of
computing interest until today it computes interest until the
specified day.

Fixes peti#18.
@basvandijk basvandijk linked a pull request Feb 5, 2023 that will close this issue
@psb777
Copy link

psb777 commented Feb 25, 2023

This would be a most welcome enhancement. I look forward to having it available to me. Meanwhile there could be a hack available if only I could get it to work. The --annual-schedule option could be used to set interest to zero at the end of the previous month. However, unless there is a balance change the interest calculation percentage change is ignored. This is a bug #20 , of course.

@bharathcs
Copy link

Great work @basvandijk! I don't have quite the same use case is, but I wanted to forecast my overall assets (e.g. using expected ROI of money market, equities etc). I was going to fork the repo to support arbitrary future end dates, but your feature fits the requirements perfectly.

basvandijk added a commit to basvandijk/hledger-interest that referenced this issue Nov 2, 2023
This option is similar to the option `--today` except that instead of
computing interest until today it computes interest until the
specified day.

Fixes peti#18.
basvandijk added a commit to basvandijk/hledger-interest that referenced this issue Mar 30, 2024
This option is similar to the option `--today` except that instead of
computing interest until today it computes interest until the
specified day.

Fixes peti#18.
basvandijk added a commit to basvandijk/hledger-interest that referenced this issue Aug 22, 2024
This option is similar to the option `--today` except that instead of
computing interest until today it computes interest until the
specified day.

Fixes peti#18.
basvandijk added a commit to basvandijk/hledger-interest that referenced this issue Nov 2, 2024
This option is similar to the option `--today` except that instead of
computing interest until today it computes interest until the
specified day.

Fixes peti#18.
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 a pull request may close this issue.

3 participants