finance

package
v0.0.0-...-b23d605 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 31, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BasicLiquidityRatio

type BasicLiquidityRatio struct {
	MonetaryAssets  float64 `form:"monetaryAssets" json:"monetaryAssets" binding:"required"`
	MonthlyExpenses float64 `form:"monthlyExpenses" json:"monthlyExpenses" binding:"required"`
	Result          float64 `json:"result"`
}

type BreakEvenPoint

type BreakEvenPoint struct {
	FixedExpenses                 float64 `form:"fixedExpenses" json:"fixedExpenses" binding:"required"`
	GrossProfitMarginInPercentage float64 `form:"grossProfitMarginInPercentage" json:"grossProfitMarginInPercentage" binding:"required"`
	Result                        float64 `json:"result"`
}

type Calculation

type Calculation interface {
	// contains filtered or unexported methods
}

type CashFlow

type CashFlow struct {
	Income   float64 `form:"income" json:"income" binding:"required"`
	Expenses float64 `form:"expenses" json:"expenses" binding:"required"`
	Result   float64 `json:"result"`
}

type CompoundInterest

type CompoundInterest struct {
	Principal                    float64 `form:"principal" json:"principal" binding:"required"`
	AnnualInterestRate           float64 `form:"annualInterestRate" json:"annualInterestRate" binding:"required"`
	NumberTimesCompoundedPerYear float64 `form:"numberTimesCompoundedPerYear" json:"numberTimesCompoundedPerYear" binding:"required"`
	LengthBorrowedInYears        float64 `form:"lengthBorrowedInYears" json:"lengthBorrowedInYears" binding:"required"`
	Result                       float64 `json:"result"`
}

type FinanceResult

type FinanceResult struct {
	CalculationType string      `json:"calculationType"`
	Data            Calculation `json:"data"`
}

func GetFinanceResult

func GetFinanceResult(calculation Calculation) FinanceResult

type NetIncome

type NetIncome struct {
	Revenue  float64 `form:"revenue" json:"revenue" binding:"required"`
	Expenses float64 `form:"expenses" json:"expenses" binding:"required"`
	Result   float64 `json:"result"`
}

type NetWorth

type NetWorth struct {
	Assets float64 `form:"assets" json:"assets" binding:"required"`
	Debts  float64 `form:"debts" json:"debts" binding:"required"`
	Result float64 `json:"result"`
}

type PERatio

type PERatio struct {
	PricePerShare    float64 `form:"pricePerShare" json:"pricePerShare" binding:"required"`
	EarningsPerShare float64 `form:"earningsPerShare" json:"earningsPerShare" binding:"required"`
	Result           float64 `json:"result"`
}

type RuleOf72

type RuleOf72 struct {
	CompoundInterestRate float64 `form:"compoundInterestRate" json:"compoundInterestRate" binding:"required"`
	Result               float64 `json:"result"`
}

type SimpleInterest

type SimpleInterest struct {
	Principal             float64 `form:"principal" json:"principal" binding:"required"`
	AnnualInterestRate    float64 `form:"annualInterestRate" json:"annualInterestRate" binding:"required"`
	LengthBorrowedInYears float64 `form:"lengthBorrowedInYears" json:"lengthBorrowedInYears" binding:"required"`
	Result                float64 `json:"result"`
}

type VariationOfInvestment

type VariationOfInvestment struct {
	CurrentPrice  float64 `form:"currentPrice" json:"currentPrice" binding:"required"`
	PurchasePrice float64 `form:"purchasePrice" json:"purchasePrice" binding:"required"`
	Result        float64 `json:"result"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL