On 03.10.17,11:46, Artyom Boyko wrote: > Hi! > > I have example journal like this > > ~ Monthly > Expenses:Food $50.00 > Assets > > > ~ Monthly > Assets $300 > Income:Salary > > > 2009/11/01 Sample > Expenses:Food:Coffee $1.00 > Assets > > > I'm trying to forecast my balance in the future. When I'm doing command > like this > > ledger -f example.dat --forecast "d<[2018/05/01]" register > > > Everything works perfectly. I can see future transactions. But If I'm doing > this: > > ledger -f example.dat --forecast "d<[2018/05/01]" balance > > > $14999.00 Assets > $3001.00 Expenses:Food > $1.00 Coffee > $-18000.00 Income:Salary > -------------------- > 0 > > > And no matter what I do, I can't change the date of my future balance. >
>From the ledger manual it says this on using forecasting with balance: 2.9.2 Forecasting Sometimes it's useful to know what your finances will look like in the future, such as determining when an account will reach zero. Ledger makes this easy to do, using the same period entries as are used for budgeting. An example forecast report can be generated with: ledger --forecast "T>{\$-500.00}" register ^assets ^liabilities This report continues outputting transactions until the running total is greater than $-500.00. A final transaction is always output, to show you what the total afterwards would be. Forecasting can also be used with the balance report, but by date only, and not against the running total: ledger --forecast "d<[2010]" bal ^assets ^liabilities Jostein -- --- You received this message because you are subscribed to the Google Groups "Ledger" group. To unsubscribe from this group and stop receiving emails from it, send an email to ledger-cli+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.