Skip to content

Conversation

@MaxGhenis
Copy link
Collaborator

Summary

  • Add POSTGRADUATE to StudentLoanPlan enum
  • Create postgraduate_interest_rate variable (RPI + 3%, same as Plan 2 max)
  • Remove hardcoded postgraduate.yaml interest rate parameter (replaced with calculated variable)
  • Update student_loan_repayment to handle postgraduate threshold and 6% rate
  • Update student_loan_interest_rate to dispatch to postgraduate rate
  • Add comprehensive tests for all interest rate variables

Why

Per Commons Library, postgraduate loans have interest at RPI + 3% throughout the loan term - the same formula as Plan 2's maximum rate. This should use the existing plan_2.additional_rate parameter (0.03) rather than hardcoded values, since they share the same legislative basis and PMR cap.

Test plan

  • All 11 interest rate tests pass
  • Tests cover Plan 1/2/4/5/Postgraduate rates
  • Tests verify income-contingent tapering for Plan 2
  • Tests verify dispatch logic in student_loan_interest_rate

Fixes #1422

🤖 Generated with Claude Code

@MaxGhenis MaxGhenis force-pushed the postgraduate-interest-rate-and-tests branch from 2894080 to 2c617c3 Compare December 1, 2025 03:53
- Add POSTGRADUATE to StudentLoanPlan enum
- Create postgraduate_interest_rate variable (RPI + 3% per Regulation 21B)
- Add postgraduate_additional_rate parameter (0.03) per Regulation 21B
- Remove hardcoded postgraduate.yaml interest rate parameter
- Add student_loan_repayment_rate variable (9% for Plans 1/2/4/5, 6% for Postgraduate)
- Update student_loan_repayment to use repayment rate variable and postgraduate threshold
- Update student_loan_interest_rate to dispatch to postgraduate rate
- Add YAML tests for interest rates and repayment rates

Fixes #1422

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

Co-Authored-By: Claude <noreply@anthropic.com>
@MaxGhenis MaxGhenis force-pushed the postgraduate-interest-rate-and-tests branch from 2c617c3 to fc04d22 Compare December 1, 2025 04:10
Update references to cite the consolidated Education (Student Loans)
(Repayment) Regulations 2009 at regulation/21B instead of the 2017
Amendment Regulations.

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

Co-Authored-By: Claude <noreply@anthropic.com>
@MaxGhenis MaxGhenis merged commit dd6ef98 into master Dec 1, 2025
2 checks passed
@MaxGhenis MaxGhenis deleted the postgraduate-interest-rate-and-tests branch December 1, 2025 04:28
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.

Add postgraduate loan interest rate variable and interest rate tests

2 participants