[Bug]: Schedule upcoming length in years doesn't calculate properly #2729

Closed
opened 2026-02-28 20:25:59 -06:00 by GiteaMirror · 4 comments
Owner

Originally created by @youngcw on GitHub (Dec 17, 2025).

Verified issue does not already exist?

  • I have searched and found no existing issue

What happened?

When setting the schedule upcoming length to use years, there is an off by 1 error.

For example. If you set the upcoming length to be 1 year, you only see maybe one instance of the schedule, where if you set upcoming to be for 2 years, you see the upcoming year of schedules.

How can we reproduce the issue?

Make a schedule that repeats

Image

Set the upcoming length to be 1 year, see that you don't get a whole year of schedules listed in the account page.

Image

Set the upcoming length to be 2 years, see that 1 year of upcoming schedules show in the account page.

Image

Where are you hosting Actual?

None

What browsers are you seeing the problem on?

No response

Operating System

None

Originally created by @youngcw on GitHub (Dec 17, 2025). ### Verified issue does not already exist? - [x] I have searched and found no existing issue ### What happened? When setting the schedule upcoming length to use years, there is an off by 1 error. For example. If you set the upcoming length to be 1 year, you only see maybe one instance of the schedule, where if you set upcoming to be for 2 years, you see the upcoming year of schedules. ### How can we reproduce the issue? Make a schedule that repeats <img width="723" height="323" alt="Image" src="https://github.com/user-attachments/assets/217ba5d6-1943-4b65-be01-df6c9273ceab" /> Set the upcoming length to be 1 year, see that you don't get a whole year of schedules listed in the account page. <img width="1090" height="121" alt="Image" src="https://github.com/user-attachments/assets/0aa4b60a-bf58-4127-bf85-91f1b277b5c1" /> Set the upcoming length to be 2 years, see that 1 year of upcoming schedules show in the account page. <img width="1095" height="479" alt="Image" src="https://github.com/user-attachments/assets/329f4471-3f0a-413b-8db2-5ffe66a187fb" /> ### Where are you hosting Actual? None ### What browsers are you seeing the problem on? _No response_ ### Operating System None
GiteaMirror added the good first issuebugschedules labels 2026-02-28 20:25:59 -06:00
Author
Owner

@youngcw commented on GitHub (Dec 17, 2025):

Using months seems to work fine, so maybe the years option could simply multiply by 12 and then use the months code.

@youngcw commented on GitHub (Dec 17, 2025): Using months seems to work fine, so maybe the years option could simply multiply by 12 and then use the months code.
Author
Owner

@Ani07-05 commented on GitHub (Dec 17, 2025):

could I take this up ?

@Ani07-05 commented on GitHub (Dec 17, 2025): could I take this up ?
Author
Owner

@youngcw commented on GitHub (Dec 17, 2025):

@Ani07-05 Feel free

@youngcw commented on GitHub (Dec 17, 2025): @Ani07-05 Feel free
Author
Owner

@Ani07-05 commented on GitHub (Dec 17, 2025):

@youngcw raised a PR please check it out , thank you !

@Ani07-05 commented on GitHub (Dec 17, 2025): @youngcw raised a PR please check it out , thank you !
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/actual#2729