benscobie / loanrepaymentapi Goto Github PK
View Code? Open in Web Editor NEWA .NET Core API for calculating loan repayments.
License: MIT License
A .NET Core API for calculating loan repayments.
License: MIT License
Currently the calculator assumes you're already paying down the loan.
https://www.gov.uk/repaying-your-student-loan/when-you-start-repaying
Also: "Interest starts being added to your loan from when you get your first payment."
More important when #4 is done as at the moment you'd never hit the threshold criteria so would never pay off the loan.
https://www.gov.uk/repaying-your-student-loan/what-you-pay
Plan 2 is based on salary as well.
The implementations are quite similar and the tests are repetitive to a degree. Can probably move the salary usable calculation into an operation and keep the carried over amount somewhere.
Student loan repayments are calculated on National Insurance-able pay, if your workplace pension comes out via salary sacrifice this will lower the amount paid. We should add something to the calculator to support this scenario.
The repayment thresholds generally increase by the average annual earnings every year.
It's currently possible to handle salary increases at certain points, but it would be better to also include an average increase every year.
Add the ability to specify yearly salary increases/decreases, either fixed or percentage. Use this in any calculations.
Salary changes can also affect the type 2 interest rate so should handle this at some point too.
Currently we're just using nominal
One-off and regular.
For example, the person might not have started paying the loan back yet as they're under the threshold. With salary increases they may hit the threshold which should set the first payment date. We shouldn't require the user to do this calculation.
I think we can just ask the user the course start and end dates and do this calculation for them.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.