{"id":24426073,"url":"https://github.com/bilbottom/loan-calcs","last_synced_at":"2025-04-24T02:05:09.410Z","repository":{"id":271523766,"uuid":"819095836","full_name":"Bilbottom/loan-calcs","owner":"Bilbottom","description":"Library for common loan calculations.","archived":false,"fork":false,"pushed_at":"2025-04-12T07:36:40.000Z","size":232,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-24T02:04:47.780Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Bilbottom.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-06-23T19:06:08.000Z","updated_at":"2025-04-08T10:28:39.000Z","dependencies_parsed_at":"2025-01-08T09:40:08.560Z","dependency_job_id":null,"html_url":"https://github.com/Bilbottom/loan-calcs","commit_stats":null,"previous_names":["bilbottom/loan-calcs"],"tags_count":0,"template":false,"template_full_name":"Bilbottom/python-template","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bilbottom%2Floan-calcs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bilbottom%2Floan-calcs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bilbottom%2Floan-calcs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bilbottom%2Floan-calcs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Bilbottom","download_url":"https://codeload.github.com/Bilbottom/loan-calcs/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250546077,"owners_count":21448260,"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":[],"created_at":"2025-01-20T11:15:33.700Z","updated_at":"2025-04-24T02:05:09.382Z","avatar_url":"https://github.com/Bilbottom.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n\n[![Python](https://img.shields.io/badge/Python-3.11+-blue.svg)](https://www.python.org/downloads/)\n[![tests](https://github.com/Bilbottom/loan-calcs/actions/workflows/tests.yaml/badge.svg)](https://github.com/Bilbottom/loan-calcs/actions/workflows/tests.yaml)\n[![coverage](coverage.svg)](https://github.com/dbrgn/coverage-badge)\n[![GitHub last commit](https://img.shields.io/github/last-commit/Bilbottom/loan-calcs)](https://shields.io/badges/git-hub-last-commit)\n\n[![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square)](https://github.com/prettier/prettier)\n[![Ruff](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json)](https://github.com/astral-sh/ruff)\n[![pre-commit.ci status](https://results.pre-commit.ci/badge/github/Bilbottom/loan-calcs/main.svg)](https://results.pre-commit.ci/latest/github/Bilbottom/loan-calcs/main)\n\n\u003c/div\u003e\n\n---\n\n# Loan Calculations\n\nLibrary for common loan calculations.\n\n## Notation\n\nA _loan_ is a fixed value of money borrowed by an entity and usually repaid over a series of instalments.\n\nThe following notation is used throughout this project for loans:\n\n- `L`: Loan amount\n- `R`: Periodic interest rate\n- `N`: Total number of repayments\n- `P_n`: Total periodic repayment value at period `n`\n- `P_{P, n}`: The principal part of the periodic repayment value at period `n`\n- `P_{I, n}`: The interest part of the periodic repayment value at period `n`\n- `b`: Whether the interest is applied before or after the repayment\n- `B_n`: The balance on the loan at period `n`\n\nThe repayment for a loan, `P_n`, is split into two parts:\n\n- The _principal_ part, `P_{P, n}`, which is paying off the original money that was borrowed.\n- The _interest_ part, `P_{I, n}`, which is paying off the interest applied on the loan.\n\nIn 'real life', a loan can have other components such as fees. These are outside the scope of this project.\n\n## Calculations\n\nMany of the properties are calculated analytically. The calculations are described in the [`tex/proofs.pdf`](tex/proofs.pdf) file.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbilbottom%2Floan-calcs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbilbottom%2Floan-calcs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbilbottom%2Floan-calcs/lists"}