{"id":27180427,"url":"https://github.com/equation-man/loan_payment_calculator","last_synced_at":"2025-04-09T14:36:13.202Z","repository":{"id":167920932,"uuid":"643543831","full_name":"equation-man/loan_payment_calculator","owner":"equation-man","description":"This program computes loan payments. It can be a car loan, student loans or home mortgage loans. The loan can also be interest only or armotised.","archived":false,"fork":false,"pushed_at":"2023-05-21T20:41:51.000Z","size":39,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-31T08:41:21.296Z","etag":null,"topics":["cpp20","fintech","fintech-utility","loan-calculator","software-engineering","system-analysis-and-design"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/equation-man.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-05-21T13:58:29.000Z","updated_at":"2023-05-22T14:49:02.000Z","dependencies_parsed_at":null,"dependency_job_id":"affcece5-dce4-4223-a527-d99cd95c3a25","html_url":"https://github.com/equation-man/loan_payment_calculator","commit_stats":null,"previous_names":["alchemistprimus/loan_payment_calculator","equation-man/loan_payment_calculator"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/equation-man%2Floan_payment_calculator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/equation-man%2Floan_payment_calculator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/equation-man%2Floan_payment_calculator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/equation-man%2Floan_payment_calculator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/equation-man","download_url":"https://codeload.github.com/equation-man/loan_payment_calculator/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248055290,"owners_count":21040151,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cpp20","fintech","fintech-utility","loan-calculator","software-engineering","system-analysis-and-design"],"created_at":"2025-04-09T14:36:12.744Z","updated_at":"2025-04-09T14:36:13.192Z","avatar_url":"https://github.com/equation-man.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# LOAN PAY CALCULATOR \n\nThis program can be used to compute loan payments, which can be, but not limited to car loans, student loans or home mortgage loan. \nIt helps in computation of two types of loans; \n- Interest Only Loans \n- Armotizing Loans \n\n###### Loan Factors Considered \nThese are the factors considered to help this program compute accurately, the monthly loan payments.  \n- **Principal** *This is the amount you have borrowed from your lender*  \n- **Loan Term** *How long your lender allows you to repay the loan*   \n- **Interest Rate** *Amount charged by the lender for lending you the money*   \n\n### Requirement specifications \n\nThis program must allow the user enter various parameters important for doing the loan calculations, i.e principal, interest rate and no of years for payment.  \nThis program will then compute and display the monthly payments and the total payment for a specified time.   \n\n### System Analysis \nOutput of the monthly payments and total payments were obtained using the following mathematical models:  \nFor interest only loans;   \n###### Monthly payment = principal * (interestRate/12)   \nFor armotized loans;   \n###### Monthly payment = principal / pow(1+rate, loanTermPeriod)-1 / rate * pow(1+rate, loanTermPeriod)   \nWhere; *rate = PeriodicInterestRate / 12*   \n\n\n\n### System Design \nIn the system design, the program undergoes the following steps. \n\n###### Steps for interest only loans.   \n1.Prompt user to enter inputs;    \n- Principal amount(will be of type double)  \n- Percentage interest rate(will be of type double)\n- Duration you expect to pay(will be of type int)     \n\n2.Using the data obtained from the user input, compute the monthly payment amount using interest only loan payment model; \n**monthly payment = principal * (interestRate/12)** (return type double)    \n\n3.Using the monthly payment amount, compute the total amount to be payed by;   \n**total amount = monthly payment * duration(p.a)** (type double)      \n\n4.Output the monthly payment and the total payment after specified duration     \n\n###### Steps for armotized loans.\n1.Prompt user to enter inputs;  \n- Principal amount(will be of type double)\n- Periodic interest rate(will be of type double)\n- Loan term period(will be of type int)\n- Time expected to pay the loan(will be of type int)    \n\n2.Consequently the data obtained from the user input, can be used to calculate armotized loan with previous models;    \n**monthly payment = principal / pow(1+rate, laonTermPeriod)-1 / rate * pow(1+rate, loanTermPeriod)**(return type double)     \n*where* **rate = periodicInterestRate / 12**    \n\n3.Using the monthly payment amount, compute total payment by;    \n**total amount = monthly payment * duration(p.m)**(return type double)     \n\n4.Output the monthly payment and the total payment after specified duration     \n\n\n### Running the program  \n\nThis program is originally design to run on linux/unix environment and can be set up and run using the steps below.   \n\n\u003e In your terminal, follow the following steps    \n\n\u003e\u003e Clone the source code from github [repository](https://github.com/AlchemistPrimus/loan_payment_calculator.git) in your desired directory;    \n\n\u003e\u003e `$git clone https://github.com/AlchemistPrimus/loan_payment_calculator.git`    \n\n\u003e\u003e Navigate to the location of the source code;   \n\n\u003e\u003e `$cd loan_payment_calculator`   \n\n\u003e\u003e Running the executable file;  \n\n\u003e\u003e`$./loan_pay_cal`   \n\n###### Alternatively you can prepare the c++ source code as follows(g++ is required)    \n\u003e Compiling the source code   \n\u003e\u003e `$g++ -Wall -Werror -Wextra -c loan_pay_cal.cpp -o loan_pay_cal.o`   \n\n\u003e\u003e Linking the object files    \n\n\u003e\u003e `$g++ loan_pay_cal.o -o loan_pay_cal`    \n\n\u003e\u003e Running the executable;    \n\n\u003e\u003e `$./loan_pay_cal`   \n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fequation-man%2Floan_payment_calculator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fequation-man%2Floan_payment_calculator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fequation-man%2Floan_payment_calculator/lists"}