{"id":17650684,"url":"https://github.com/sebhoss/finj","last_synced_at":"2025-07-25T22:11:23.920Z","repository":{"id":9221689,"uuid":"11036137","full_name":"sebhoss/finj","owner":"sebhoss","description":"Clojure library for financial computations","archived":false,"fork":false,"pushed_at":"2016-05-14T20:29:00.000Z","size":174,"stargazers_count":35,"open_issues_count":0,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-05-07T03:43:23.100Z","etag":null,"topics":["clojure","economics","finance"],"latest_commit_sha":null,"homepage":"","language":"Clojure","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"wtfpl","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sebhoss.png","metadata":{"files":{"readme":"README.textile","changelog":null,"contributing":"CONTRIBUTING.textile","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-06-28T19:46:12.000Z","updated_at":"2024-05-31T07:57:03.000Z","dependencies_parsed_at":"2022-08-27T05:13:06.410Z","dependency_job_id":null,"html_url":"https://github.com/sebhoss/finj","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sebhoss%2Ffinj","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sebhoss%2Ffinj/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sebhoss%2Ffinj/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sebhoss%2Ffinj/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sebhoss","download_url":"https://codeload.github.com/sebhoss/finj/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252810272,"owners_count":21807759,"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":["clojure","economics","finance"],"created_at":"2024-10-23T11:39:15.359Z","updated_at":"2025-05-07T03:43:27.905Z","avatar_url":"https://github.com/sebhoss.png","language":"Clojure","funding_links":[],"categories":[],"sub_categories":[],"readme":"h1. finj \"!https://travis-ci.org/sebhoss/finj.png!\":https://travis-ci.org/sebhoss/finj \"!https://www.ohloh.net/p/finj-clj/widgets/project_thin_badge.gif!\":https://www.ohloh.net/p/finj-clj/\n\np. finj is a Clojure library for financial computations.\n\n\nh2. Usage\n\np. The library lives under @finj@ and is divided into the following namespaces and functions (use @(doc namespace/function)@ to read the documentation): \n\nh3. annuity/\n\n* @present-immediate-factor@ _:rate :period_\n* @future-immediate-factor@ _:rate :period_\n* @present-immediate-value@ _:payment :rate :period_\n* @present-due-value@ _:payment :rate :period_\n* @future-immediate-value@ _:payment :rate :period_\n* @future-due-value@ _:payment :rate :period_\n* @perpetuity-immediate-value@ _:payment :rate_\n* @perpetuity-due-value@ _:payment :rate_\n\nh3. common/\n\n* @rate@ _:rate-per-cent_\n* @accumulation-factor@ _:rate_\n\nh3. compound-interest/\n\n* @amount@ _:present-value :rate :period_\n* @final-value@ _:present-value :rate :period_\n* @present-value@ _:final-value :rate :period_\n* @yield@ _:final-value :present-value :period_\n* @period@ _:final-value :present-value :rate_\n* @actual-value@ _:present-value :rate :start-part :period :end-part_\n* @final-annual-value@ _:present-value :rate :period :in-year-period_\n* @relative-annual-rate@ _:rate :in-year-period_\n* @conformal-annual-rate@ _:rate :in-year-period_\n* @effective-annual-rate@ _:relative-annual-rate :in-year-period_\n* @continuous-value@ _:present-value :rate :period_\n* @intensity@ _:rate_\n* @rate@ _:intensity_\n\nh3. deprecation/\n\n* @straight-line-annual-expense@ _:fixed-asset :residual-value :period_\n* @straight-line-expense@ _:fixed-asset :residual-value :period_\n* @straight-line-accumulated@ _:fixed-asset :residual-value :period_\n* @straight-line-book-value@ _:fixed-asset :residual-value :period_\n* @declining-balance-rate@ _:fixed-asset :residual-value :period_\n* @declining-balance-rate-expense@ _:fixed-asset :residual-value :period_\n* @declining-balance-rate-accumulated@ _:fixed-asset :residual-value :period_\n* @declining-balance-rate-book-value@ _:fixed-asset :residual-value :period_\n* @sum-of-years-digit-expense@ _:fixed-asset :residual-value :period_\n* @sum-of-years-digit-accumulated@ _:fixed-asset :residual-value :period_\n* @sum-of-years-digit-book-value@ _:fixed-asset :residual-value :period_\n* @units-of-production-expense@ _:fixed-asset :residual-value :production_\n* @units-of-production-accumulated@ _:fixed-asset :residual-value :production_\n* @units-of-production-book-value@ _:fixed-asset :residual-value :production_\n\nh3. interest/\n\n* @amount@ _:present-value :rate :period_\n* @final-value@ _:present-value :rate :period_\n* @present-value@ _:final-value :rate :period_\n* @rate@ _:final-value :present-value :period_\n* @period@ _:final-value :present-value :rate_\n* @day@ _:final-value :present-value :rate :days-per-year_\n\nh3. investment/\n\n* @net-present-value@ _:rate :cashflows_\n* @adjusted-present-value@ _:value-without-liabilities :borrowed-capital :rate :risk-free-rate_\n* @equivalent-annual-cost@ _:investment :period :maintenance :rate_\n\nh3. loan/\n\n* @rate-balance-due@ _:loan :period :repayment-period_\n* @rate-interest-amount@ _:loan :period :repayment-period :rate_\n* @annuity@ _:loan :period :accumulation-factor_\n* @annuity-amount@ _:loan :annuity :period :repayment-period :accumulation-factor_\n* @annuity-balance-due@ _:loan :annuity :period :accumulation-factor_\n* @annuity-interest-amount@ _:annuity :first-annuity-amount :period :accumulation-factor_\n* @period@ _:loan :annuity :accumulation-factor_\n\nh3. pension/\n\n* @final-due-value@ _:payment :accumulation-factor :period_\n* @final-immediate-value@ _:payment :accumulation-factor :period_\n* @present-due-value@ _:payment :accumulation-factor :period_\n* @present-immediate-value@  _:payment :accumulation-factor :period_\n* @perpetuity-due-value@ _:payment :accumulation-factor_\n* @perpetuity-immediate-value@  _:payment :accumulation-factor_\n* @period@ _:payment :accumulation-factor :final-immediate-value :present-immediate-value_\n\nh3. periodic-payment/\n\n* @due-payments@ _:amount :rate :period_\n* @immediate-payments@ _:amount :rate :period_\n\nh3. ratio/\n\n* @debt-ratio@ _:total-debt :total-assets_\n* @debt-to-capital-ratio@ _:debt :equity_\n* @debt-to-equity-ratio@ _:debt :equity_\n* @debtor-collection-period@ _:average-debtor :credit-sales :opt-def :days 365_\n* @current-ratio@ _:current-assets :current-liabilities_\n* @capital-adequacy-ratio@ _:tier-1-capital :tier-2-capital :risk-weighted-assets_\n* @capital-recovery-factor@ _:rate :period_\n* @capitalization-rate@ _:income :cost_\n* @equity-ratio@ _:equity :total-assets_\n* @return-on-assets@ _:income :assets_\n* @sustainable-growth-rate@ _:profit-margin :dividend-payout-ratio :debt-to-equity-ratio :assets-to-sales-ratio_\n* @treynor-ratio@ _:portfolio-return :risk-free-rate :portfolio-beta_\n\nh3. root-finding/\n\n* @bisect@ _:function :lower-startpoint :upper-startpoint_\n* @secant@ _:function :first :second_\n* @newton@ _:function :derivative :min-denominator :start-value_\n* @regula-falsi@ _:function :lower-startpoint :upper-startpoint_\n\nh3. share-price/\n\n* @market-price@ _:real-capital :nominal-capital :nominal-rate :accumulation-factor :effective-accumulation-factor :period :real-benefit :nominal-benefit :nominal-rate :real-rate :agio_\n* @real-rate@ _:market-price :nominal-rate :agio :period_\n\n\nh2. Integration\n\nh3. Maven\n\nbc. \u003cdependencies\u003e\n  \u003cdependency\u003e\n    \u003cgroupId\u003ecom.github.sebhoss\u003c/groupId\u003e\n    \u003cartifactId\u003efinj\u003c/artifactId\u003e\n    \u003cversion\u003e[2.0.0,3.0.0)\u003c/version\u003e\n  \u003c/dependency\u003e\n\u003c/dependencies\u003e\n\nh3. Leiningen\n\nbc. [com.github.sebhoss/finj \"[2.0.0,3.0.0)\"]\n\n\nh2. License\n\np. This program is free software. It comes without any warranty, to the extent permitted by applicable law. You can redistribute it and/or modify it under the terms of the Do What The Fuck You Want To Public License, Version 2, as published by Sam Hocevar. See \"http://www.wtfpl.net/\":http://www.wtfpl.net/ for more details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsebhoss%2Ffinj","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsebhoss%2Ffinj","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsebhoss%2Ffinj/lists"}