# Forecasting Future Transactions in Beancount

There is a plugin for beancount to forecast future recurring transactions. How to apply it in beancount.io? Put
the following content into your [ledger file](https://beancount.io/ledger/0/editor/).

```bean
; @m49-fragment env-plugin
; import the plugin
plugin "fava.plugins.forecast"

; add a monthly HOA fee
2022-05-30 # "HOA fee [MONTHLY]"
  Expenses:Hoa                                      1024.00 USD
  Assets:Checking                                  -1024.00 USD
```

![Forecast plugin screenshot](https://beancount-io.b-cdn.net/forecast-plugin.png)

And then, you will see the forecast in [Net Profit chart](https://beancount.io/ledger/0/income_statement/).

![Forecast Plugin](https://beancount-io.b-cdn.net/forecast-plugin.png)

The tag `[MONTHLY]` above means it will recur forever. If you have more conditions to apply, try
`[MONTHLY UNTIL 2022-06-01]`, `[MONTHLY REPEAT 5 TIMES]`, `[YEARLY REPEAT 5 TIMES]`, or `[WEEKLY SKIP 1 TIME REPEAT 5 TIMES]`.
