packages feed

hledger-interest 1.0 → 1.1

raw patch · 1 files changed

+8/−7 lines, 1 files

Files

hledger-interest.cabal view
@@ -1,5 +1,5 @@ Name:                   hledger-interest-Version:                1.0+Version:                1.1 Synopsis:               computes interest for a given account License:                BSD3 License-file:           LICENSE@@ -9,6 +9,7 @@ Category:               Finance Build-type:             Simple Cabal-version:          >= 1.6+Tested-With:            GHC == 6.12.3, GHC == 7.0.4, GHC == 7.2.1 Description:  hledger-interest is a small command-line utility based on Simon  Michael's hleder library. Its purpose is to compute interest for a@@ -19,10 +20,10 @@  the scheme mandated by the German BGB288 (Basiszins für  Verbrauchergeschäfte). Extending support for other schemes is fairly  easy, but currently requires changing to the source code.-+ .  As an example, consider the following loan, stored in a file called  @test.ledger@:-+ .  > 2008/09/26 Loan  >     Assets:Bank          EUR 10000.00  >     Liabilities:Loan@@ -38,11 +39,11 @@  > 2010/12/10 Payment  >     Assets:Bank          EUR -3700.00  >     Liabilities:Loan-+ .  Suppose that loan earns 5% interest per year, and payments amortize  interest before amortizing the principal claim, then the resulting  ledger would look like this:-+ .  > $ hledger-interest --file=test.ledger --source=Expenses:Interest --target=Liabilities:Loan --30-360 --annual=0.05 Liabilities:Loan  > 2008/09/26 Loan  >     Assets:Bank              EUR  10000.00@@ -83,10 +84,10 @@  > 2010/12/31 5.00% interest for EUR -1981.58 over 21 days  >     Liabilities:Loan         EUR     -5.78  >     Expenses:Interest-+ .  Running the utility with @--help@ gives a brief overview over the  available options:-+ .  > Usage: hledger-interest [OPTION...] ACCOUNT  >   -h          --help            print this message and exit  >   -V          --version         show version number and exit