ChrisCScott / forecaster

A personal finances forecasting tool for Canadian retirement planning
Other
1 stars 2 forks source link

Implement Canadian spousal tax credit #41

Closed ChrisCScott closed 6 years ago

ChrisCScott commented 6 years ago

Implement the spousal tax credit in TaxCanadaJurisdiction and canada.constants. See this CRA explainer for spousal tax credit rules and amounts.

Calculating this credit requires first applying all deductions (separately for each jurisdiction) and determining the credit based on income net of deductions. This is a typical scenario for Canadian taxes, where credits are applied to post-deduction (pre-credit) net income. This is not the same as Person.net_income, which does not include deductions or taxable income from Accounts.

Since this is how tax credits are ordinarily calculated in Canada, it may be necessary to redesign TaxCanadaJurisdiction.tax_credit method to receive net_income (as a {Person: Money} dict). Implementing the spousal tax credit will be relatively easy once that's done.