Skip to content

Conversation

@MaxGhenis
Copy link
Contributor

Summary

Changes

  • Added CPP retirement pension parameters (maximum, average monthly amounts, eligibility age)
  • Implemented eligibility based on age 60+ and contribution history
  • Calculate benefit proportional to years of contribution (up to 40 years)
  • Use average monthly benefit as basis for simplified calculation

Test Coverage

  • Full contribution scenarios (40 years)
  • Partial contribution scenarios
  • Age eligibility tests
  • Multi-year test cases (2024 and 2025)

Simplifications

This is a simplified implementation that:

  • Uses years of contribution as a simple input variable
  • Calculates benefit as a proportion of the average benefit based on contribution years
  • Does not implement early/late retirement adjustments
  • Does not implement the complex earnings-based calculation

References

🤖 Generated with Claude Code

MaxGhenis and others added 2 commits August 24, 2025 16:11
- Add CPP retirement pension parameters (maximum, average, eligibility age)
- Implement eligibility based on age 60+ and contribution history
- Calculate benefit proportional to years of contribution (up to 40 years)
- Use average monthly benefit as basis for calculation
- Add test coverage for various age and contribution scenarios

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
- Add cpp_retirement_pension to household benefits aggregation
- Remove unnecessary self-referential adds declaration

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant