An open API service indexing awesome lists of open source software.

https://github.com/srbrettle/financial-formulas

A collection of methods for solving Finance/Accounting equations. Java, C# (moved to independent repo for future development), C++, Python.
https://github.com/srbrettle/financial-formulas

accounting algorithm algorithms business calculator csharp csharp-library economics equation finance finances formula invest investing investment java java-library python python-library stock-market

Last synced: 2 months ago
JSON representation

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

Awesome Lists containing this project

README

        

# Financial-Formulas [![Build Status](https://travis-ci.org/srbrettle/Financial-Formulas.svg?branch=master)](https://travis-ci.org/srbrettle/Financial-Formulas) [![contributions welcome](https://img.shields.io/badge/contributions-welcome-brightgreen.svg?style=flat)](https://github.com/srbrettle/Financial-Formulas/issues)

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

## See in Action

[Finance Calculator - Android Application](https://play.google.com/store/apps/details?id=barwick.financecalculator)

## Getting Started - Java

1. Download and import [this](/main/java/) library into your project:
```java
import srbrettle.financialformulas.FinancialFormulas;
```
2. Use the library methods:
```java
double result = FinancialFormulas.CalcPriceSalesRatio(500,200);
```

## Getting Started - C# [Deprecated - New GitHub Repo](https://github.com/srbrettle/Financial-Formulas-Library-.NET-Core/tree/master)

### Using NuGet [![NuGet](https://img.shields.io/badge/NuGet-1.0.2-blue.svg)](https://www.nuget.org/packages/FinancialFormulas/1.0.2)

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

### Manually

1. Download and import [this](/main/csharp/) library into your project.
2. Reference the Namespace:
```c#
using srbrettle.FinancialFormulas;
```
3. Use the static library methods:
```c#
double result = FinancialFormulas.CalcPriceSalesRatio(500,200);
```

## Getting Started - Python

Note that the mothod and variable names have been changed to meet PEP 8 guidelines.

1. Download and import [this](/main/python/) library into your project:
```python
import srbrettle.financialformulas.FinancialFormulas as calc
```
2. Use the library methods:
```python
assets = calc.calc_price_sales_ratio(500, 200)
```

## Getting Started - C++

1. Download the [source code](/main/cplusplus/).
2. Follow the instructions in [Walkthrough: Creating and Using a Static Library (C++)](https://docs.microsoft.com/en-gb/cpp/windows/walkthrough-creating-and-using-a-static-library-cpp)

## License

This project is licensed under the MIT License - see the [LICENSE](/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