• Stars
    star
    239
  • Rank 168,059 (Top 4 %)
  • Language
    C#
  • License
    MIT License
  • Created about 6 years ago
  • Updated 7 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A collection of methods for solving Finance/Accounting equations, implemented in C#.

Financial-Formulas-Library-.NET-Standard

Build status Build Status codecov contributions welcome

A collection of methods for solving Finance/Accounting equations, implemented in C#. Java, Python and C++ implementations are available here.

Getting Started - C#

Using NuGet NuGet

  1. Within your project, install FinancialFormulas NuGet package (via "Manage Packages for Solution" or running the following in "Packet Manager Console".
Install-Package FinancialFormulas -Version 1.3.1
  1. Reference the Namespace:
using srbrettle.FinancialFormulas;
  1. Use the static library methods:
double result = FinancialFormulas.CalcPriceSalesRatio(500,200);

Manually

  1. Download and import this library into your project.
  2. Reference the Namespace:
using srbrettle.FinancialFormulas;
  1. Use the static library methods:
double result = FinancialFormulas.CalcPriceSalesRatio(500,200);

License

This project is licensed under the MIT License - see the LICENSE file for details.

Formulas / Equations included

FinancialFormulas.cs

  • Asset Turnover
  • Assets
  • Average Collection Period
  • Book Value
  • Cash Conversion Cycle
  • Cash Ratio
  • Current Ratio
  • Debt Equity Ratio
  • Debt Ratio
  • Debt Service Coverage Ratio
  • Declining Balance
  • Dividend Cover
  • Dividend Yield
  • Dividends Per Share
  • Earnings Per Share
  • EBIT
  • EBITDA
  • Efficiency Ratio
  • Equity
  • Gross Profit
  • Gross Profit Margin
  • Inventory Conversion Period
  • Inventory Conversion Ratio
  • Inventory Turnover
  • Long-Term Debt Equity Ratio
  • Liabilities
  • Net Profit
  • Operating Cash Flow Ratio
  • Operating Margin
  • Operating Profit
  • Payables Conversion Period
  • Payout Ratio
  • PEG Ratio
  • Price Sales Ratio
  • Profit Margin
  • Quick Ratio
  • Receivables Conversion Period
  • Receivables Turnover Ratio
  • Return On Assets
  • Return On Capital
  • Return On Equity
  • Return On Investment
  • Return On Net Assets
  • Risk Adjusted Return On Capital
  • Sales Revenue
  • Straight Line Method
  • Units Of Production

BankingFormulas.cs

  • Annual Percentage Yield
  • Balloon Loan Payment
  • Compound Interest
  • Continuous Compounding
  • Debt To Income Ratio
  • Balloon Balance Of Loan
  • Loan Payment
  • Remaining Balance On Loan
  • Loan To Deposit Ratio
  • Loan To Value Ratio
  • Simple Interest
  • Simple Interest Rate
  • Simple Interest Principal
  • Simple Interest Time

FinancialMarketsFormulas.cs

  • Rate Of Inflation
  • Real Rate Of Return

StocksBondsFormulas.cs

  • Bid Ask Spread
  • Bond Equivalent Yield
  • Book Value per Share
  • Capital Asset Pricing Model
  • Capital Gains Yield
  • Current Yield
  • Diluted Earnings Per Share
  • Dividend Payout Ratio
  • Dividend Yield - Stock
  • Dividends Per Share
  • Earnings Per Share
  • Equity Multiplier
  • Estimated Earnings
  • Geometric Mean Return
  • Holding Period Return
  • Net Asset Value
  • Preferred Stock
  • Price to Book Value
  • Price to Earnings (P/E Ratio)
  • Price to Sales (P/S Ratio)
  • Risk Premium
  • Stock - PV with Constant Growth
  • Stock - PV with Zero Growth
  • Tax Equivalent Yield
  • Total Stock Return
  • Yield to Maturity
  • Zero Coupon Bond Value
  • Zero Coupon Bond Yield

CorporateFormulas.cs

  • Asset to Sales Ratio
  • Asset Turnover Ratio
  • Avg Collection Period
  • Contribution Margin
  • Current Ratio
  • Days in Inventory
  • Debt Coverage Ratio
  • Debt Ratio
  • Debt to Equity Ratio
  • Discounted Payback Period
  • Equivalent Annual Annuity
  • Free Cash Flow to Equity (FCFE)
  • Free Cash Flow to Firm (FCFF)
  • Interest Coverage Ratio
  • Inventory Turnover Ratio
  • Net Present Value
  • Net Profit Margin
  • Net Working Capital
  • Payback Period
  • Quick Ratio
  • Receivables Turnover Ratio
  • Retention Ratio
  • Return on Assets (ROA)
  • Return on Equity (ROE)
  • Return on Investment

GeneralFinanceFormulas.cs

  • Annuity - Future Value
  • Annuity - Future Value w/ Continuous Compounding
  • Annuity - (FV) Solve for n
  • Annuity - Payment (PV)
  • Annuity - Payment (FV)
  • Annuity - (PV) Solve for n
  • Annuity - Present Value
  • Avg Collection Period
  • Annuity - PV Factor
  • Annuity Due - Present Value
  • Annuity Due - Future Value
  • Annuity Due Payment (PV)
  • Annuity Due Payment (FV)
  • Doubling Time
  • Doubling Time - Cont. Compounding
  • Doubling Time - Simple Interest
  • Future Value
  • FV - Continuous Compounding
  • Future Value Factor
  • Growing Annuity - Future Value
  • Growing Annuity - Payment (PV)
  • Growing Annuity - Payment (FV)
  • Growing Annuity - Present Value
  • Growing Perpetuity - Present Value
  • Number of Periods - PV & FV
  • Perpetuity
  • Present Value
  • PV - Continuous Compounding
  • Present Value Factor
  • Rule of 72
  • Weighted Average

More Repositories

1

Financial-Formulas

A collection of methods for solving Finance/Accounting equations. Java, C# (moved to independent repo for future development), C++, Python.
C#
27
star
2

Generate-Checksum-Hash-SHAs-and-MD5-Python

Generate SHA1, SHA-224, SHA-256, SHA-384, SHA-512, SHA-3-224, SHA-3-256, SHA-3-384, SHA-3-512 and MD5 checksums/hash values for a given file.
Python
9
star
3

Equations-Of-Motion-Library

A collection of methods for solving Displacement, Initial and Final Velocities, Constant Acceleration and Time.
C#
3
star
4

Network-Interface-Cards-Adapters-Info

Quick console application written in C# to output the available details about the devices Network Interface Controllers (physical or virtual).
C#
3
star
5

Image-Resizer-Python

Quickly resize images to a given height and width using a "Nearest Neighbour", "Bicubic", "Bilinear", or "Anti-Alias" filter.
Python
2
star
6

RESTful-API-using-Financial-Formulas

C#
2
star
7

VLSM-Subnet-Mask-Calculator

Android - Calculates Prefix length, Subnet Mask, and Number of IP Addresses available.
Java
2
star
8

MoD-Supplier-Dependency-OGL-Data-Python

Dependency of Top 10 Suppliers on MOD Business. Contains public sector information licensed under the Open Government Licence v3.0.
HTML
2
star
9

Hourly-Cron-Folder-Windows-Service-CSharp

Windows Service to run all executables in "C:/Cron" folder every hour. Implemented in C#.
C#
1
star
10

Voltage-Divider-Calculator-CSharp

Voltage Divider Calculator implemented in C# (UWP).
C#
1
star
11

Compound-Interest-Modelling-Python

Plotting compound interest over time for a range of scenarios.
HTML
1
star
12

GenericCalc-PresentFutureVal-Android

Generic Calculator App - Formulas modified in this instance for Present Value/Future Value calculations.
Java
1
star