Financial-Formulas
Financial-Formulas copied to clipboard
A collection of methods for solving Finance/Accounting equations. Java, C# (moved to independent repo for future development), C++, Python.
Financial-Formulas

A collection of methods for solving Finance/Accounting equations, implemented in C#, Java, Python and C++.
See in Action
Finance Calculator - Android Application
Getting Started - Java
- Download and import this library into your project:
import srbrettle.financialformulas.FinancialFormulas;
- Use the library methods:
double result = FinancialFormulas.CalcPriceSalesRatio(500,200);
Getting Started - C# Deprecated - New GitHub Repo
Using NuGet 
- 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.0.2
- Reference the Namespace:
using srbrettle.FinancialFormulas;
- Use the static library methods:
double result = FinancialFormulas.CalcPriceSalesRatio(500,200);
Manually
- Download and import this library into your project.
- Reference the Namespace:
using srbrettle.FinancialFormulas;
- Use the static library methods:
double result = FinancialFormulas.CalcPriceSalesRatio(500,200);
Getting Started - Python
Note that the mothod and variable names have been changed to meet PEP 8 guidelines.
- Download and import this library into your project:
import srbrettle.financialformulas.FinancialFormulas as calc
- Use the library methods:
assets = calc.calc_price_sales_ratio(500, 200)
Getting Started - C++
- Download the source code.
- Follow the instructions in Walkthrough: Creating and Using a Static Library (C++)
License
This project is licensed under the MIT License - see the LICENSE file for details.
Formulas / Equations included
- 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