canadian-income-tax: Canadian income tax calculation

[ gpl, library, productivity, program, tax ] [ Propose Tags ]

This package provides a library and executable to fill out incomplete Canadian tax forms in FDF format and to populate all fields therein that can be automatically calculated from the rest of the form.


[Skip to Readme]

Modules

[Last Documentation]

  • Tax
    • Canada
      • T1
        • Tax.Canada.T1.FDF
        • Tax.Canada.T1.FieldNames
        • Tax.Canada.T1.Fix
        • Tax.Canada.T1.Types

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

  • No Candidates
Versions [RSS] 2022.1, 2022.2, 2022.2.0.1, 2022.2.1, 2023.0
Change log CHANGELOG.md
Dependencies base (>=4 && <5), bytestring (>=0.10.4 && <1), ca-province-codes (>=1.0 && <1.1), canadian-income-tax, containers (>=0.5 && <0.7), forms-data-format (>=0.1 && <0.2), monoid-subclasses (>=1 && <2), optparse-applicative (>=0.15 && <0.18), rank2classes (>=1.5 && <1.6), template-haskell (>=2 && <3), text (>=1.0 && <2.1), time (>=1 && <2), transformers (>=0.1 && <0.7) [details]
License GPL-3.0-or-later
Copyright (c) 2023 Mario Blažević
Author Mario Blažević
Maintainer blamario@protonmail.com
Category tax, productivity
Bug tracker https://github.com/blamario/canadian-income-tax/issues
Source repo head: git clone https://github.com/blamario/canadian-income-tax
Uploaded by MarioBlazevic at 2023-04-03T01:20:45Z
Distributions
Executables complete-canadian-t1-form
Downloads 162 total (16 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs not available [build log]
All reported builds failed as of 2023-04-06 [all 7 reports]

Readme for canadian-income-tax-2022.1

[back to package description]

Canadian Income Tax

Use

This Haskell package consists of a library and executable to fill out the Canadian T1 tax form. The way to use it is as follows:

  1. Download the fillable PDF form from the canada.ca Web site.

  2. Fill out the form; don't bother filling out any fields that are calculated from other fields in the same form, that part will be performed automatically.

  3. Save the filled-out PDF form.

  4. Run

    pdftk 5006-r-fill-22e.pdf generate_fdf output 5006-r-fill-22e.fdf
    

where 5006-r-fill-22e.pdf is the file you previously saved and 5006-r-fill-22e.pdf is the name of the output file; feel free to change them.

  1. Run

    complete-canadian-t1-form 5006-r-fill-22e.fdf -o 5006-r-fill-22e-filled.fdf
    

where 5006-r-fill-22e-filled.fdf is the output FDF file name with all calculated fields automatically filled in.

  1. Run

    pdftk 5006-r-fill-22e.pdf fill_form 5006-r-fill-22e-filled.fdf output 5006-r-fill-22e-filled.pdf
    

to transfer the FDF field values from the previous step to the new PDF file, 5006-r-fill-22e-filled.pdf.

  1. Verify the final PDF file. The executable comes with no warranty and has not been approved by CRA. The reponsibility for its correctness is still yours.

  2. Print and sign the tax return, then send it to CRA by mail along with your documents. At some point they'll hopefully open a way to digitally file the same information they accept on paper, but their EFILE protocol is so far not open to the public.

Installation

As you can see from the above instructions, you'll need to install the free pdftk executable to deal with PDF <-> FDF conversion. See their instructions. On Ubuntu you can simply run

sudo apt install pdftk

To install the complete-canadian-t1-form executable, you'll need Haskell development tools. The simplest procedure overall is to install ghcup, then use it to install ghc (version 9.2 or greater) and cabal, then to run

cabal install canadian-income-tax