[GNC] Scheduled Transaction Calculations
Fross, Michael
michael at fross.org
Fri Nov 1 12:36:33 EDT 2019
Hello all,
I have a scheduled transaction that I pay monthly which is a fixed amount
per day. I'd love to be able to have is automatically entrer based on the
number of days per month. I pay on the 1st (or the first business day
after that) so basically I'd like to use the following formula:
Amount = NumDaysInPreviousMonth * AmountPerDay
I looked through the guide
<https://wiki.gnucash.org/wiki/Scheduled_Transactions> and didn't see
anything. It references fin.scm (link throws a 404 by the way) but I
didn't see anything here that calculated the number of days in the previous
month (but perhaps I missed it in the SCM code.)
This seems like a simple use case, am I missing something? Perhaps I'll
need to write a function in fin.scm that can return the number of days in a
provided month. No idea how to use scheme, but I'm sure I can figure it
out.
Thoughts?
Thank you.
Michael
More information about the gnucash-user
mailing list