peRatio

This function return PE Ratio of a stock.

Arguments
  • marketPrice
  • eps
Returns
  • String
Example
var marketPrice = 148.9; 
var eps = 3.91;
investor.peRatio( marketPrice , eps );  
// => 38.08 

pbRatio

This function return PB Ratio of a stock.

Arguments
  • marketPrice
  • bookValue
Returns
  • String
Example
var marketPrice = 148.9; 
var bookValue = 27.44;
investor.pbRatio(marketPrice, bookValue);  
// => 5.43 

EPS

This function return Earnings Per Share (EPS) of a stock.

Arguments
  • netIncome
  • preferredDividends
  • commonShares
Returns
  • String
Example
var netIncome = 3120000000; 
var preferredDividends = 200000000;
var commonShares = 283400000;
investor.EPS(netIncome, preferredDividends, commonShares);  
// => 10.30 

epsGrowth

This function return Earnings Per Share growth (EPS) of a stock.

Arguments
  • currentYear
  • priorYear
Returns
  • String
Example
var currentYear = 3.4; 
var priorYear = 3;
investor.epsGrowth(currentYear, priorYear);  
// => 13.33% 

netProfitGrowth

This function return Net Profit Growth of a stock.

Arguments
  • currentPeriod
  • priorPeriod
Returns
  • String
Example
var currentPeriod = 130000000; 
var priorPeriod = 100000000;
investor.netProfitGrowth(currentPeriod, priorPeriod);  
// => 30% 

salesGrowth

This function return Sales Growth .

Arguments
  • currentPeriod
  • priorPeriod
Returns
  • String
Example
var currentPeriod = 100000; 
var priorPeriod = 80000;
investor.salesGrowth(currentPeriod, priorPeriod);  
// => 25% 

profitGrowth

This function return Profit Growth .

Arguments
  • currentPeriod
  • priorPeriod
Returns
  • String
Example
var currentPeriod = 500000; 
var priorPeriod = 420000;
investor.profitGrowth(currentPeriod, priorPeriod);  
// => 19.05% 

salesToCashFlowPerShare

This function return sales to cashflow per share.

Arguments
  • sales
  • cashflowPerShare
Returns
  • String
Example
var sales = 100000; 
var cashflowPerShare = 65;
investor.salesToCashFlowPerShare(sales, cashflowPerShare);  
// => 1538.46 

priceToCashflow

This function return price to cashflow.

Arguments
  • sharePrice
  • operatingCashFlowpershare
Returns
  • String
Example
var sharePrice = 148; 
var operatingCashFlowpershare = 8.8;
investor.priceToCashflow(sharePrice, operatingCashFlowpershare);  
// => 16.82 

freeCashFlowPerShare

This function return free cashflow per share.

Arguments
  • freeCashflow
  • commonShares
Returns
  • Number
Example
var freeCashflow = 4000000; 
var commonShares = 10000000;
investor.freeCashFlowPerShare(freeCashflow, commonShares);  
// => 0.4

cashFlowPerShare

This function return cashflow per share.

Arguments
  • cashFlowFromOperations
  • dividendsPaid
  • outstandingShares
Returns
  • Number
Example
var cashFlowFromOperations = 10000; 
var dividendsPaid = 2000;
var outstandingShares = 1000; 
investor.cashFlowPerShare(cashFlowFromOperations , dividendsPaid , outstandingShares);  
// => 8

interestCoverRatio

This function return interest cover ratio.

Arguments
  • EBIT
  • interestExpense
Returns
  • String
Example
var EBIT = 29680; 
var interestExpense = 3463; 
investor.interestCoverRatio(EBIT , interestExpense );  
// => 8.57

marketCaptoSales

This function return market cap to sales.

Arguments
  • marketCap
  • sales
Returns
  • String
Example
var marketCap = 100000000; 
var sales = 1000000; 
investor.marketCaptoSales(marketCap , sales );  
// => 100.00

EVtoSALES

This function return enterprise value to sales.

Arguments
  • enterpriseValue
  • sales
Returns
  • String
Example
var enterpriseValue = 46111; 
var sales = 21688; 
investor.EVtoSALES(enterpriseValue , sales );  
// => 2.13

debtToAssetRatio

This function return debt to assets ratio.

Arguments
  • Liabilities
  • Assets
Returns
  • String
Example
var Liabilities = 107219;
var Assets = 362357; 
investor.debtToAssetRatio(Liabilities, Assets);  
// => 29.59%

casaRatio

This function return casa ratio.

Arguments
  • casaDeposits
  • totalDeposits
Returns
  • String
Example
var casaDeposits = 23000;
var totalDeposits = 50000; 
investor.casaRatio(casaDeposits, totalDeposits);  
// => 46%

interestIncomeToTotalFunds

This function return interest income to total funds.

Arguments
  • netInterestIncome
  • totalDeposits
Returns
  • String
Example
var netInterestIncome = 100000;
var totalDeposits = 1000000; 
investor.interestIncomeToTotalFunds(netInterestIncome, totalDeposits);  
// => 10%

creditToDeposit

This function return credit to deposit.

Arguments
  • totalAdvances
  • totalDeposits
Returns
  • String
Example
var totalAdvances = 88419;
var totalDeposits = 93000; 
investor.creditToDeposit(totalAdvances, totalDeposits);  
// => 95.07%

operatingIncomeGrowth

This function return operating income growth.

Arguments
  • operatingincomeCurrentYear
  • operatingincomePreviousYear
Returns
  • String
Example
var operatingincomeCurrentYear = 2500000;
var operatingincomePreviousYear = 2000000; 
investor.operatingIncomeGrowth(operatingincomeCurrentYear, operatingincomePreviousYear);  
// => 25.00%

advancesGrowth

This function return operating income growth.

Arguments
  • currentPeriod
  • previousPeriod
Returns
  • String
Example
var currentPeriod = 500000;
var previousPeriod = 450000; 
investor.advancesGrowth(currentPeriod, previousPeriod);  
// => 11.11%

dividendPayoutRatio

This function return dividend payout ratio.

Arguments
  • dividendPerShare
  • EPS
Returns
  • String
Example
var dividendPerShare = 5;
var EPS = 98; 
investor.dividendPayoutRatio(dividendPerShare, EPS);  
// => 5.10%

bookValue

This function return dividend payout ratio.

Arguments
  • acquisitionCost
  • depreciation
Returns
  • String
Example
var acquisitionCost = 1000;
var depreciation = 500; 
investor.bookValue(acquisitionCost , depreciation);  
// => 500.00

bookValueperShare

This function return book value per share.

Arguments
  • totalEquity
  • preferredEquity
  • outstandingShares
Returns
  • String
Example
var totalEquity = 10;
var preferredEquity = 3;
var outstandingShares = 3.5; 
investor.bookValueperShare(totalEquity , preferredEquity , outstandingShares);  
// => 2.00

operatingCostToAssetsRatio

This function return operating cost to assets ratio.

Arguments
  • operatingExpenses
  • averageAssets
Returns
  • String
Example
var operatingExpenses = 2769476;
var averageAssets = 129280571; 
investor.operatingCostToAssetsRatio(operatingExpenses , averageAssets);  
// => 2.14%

costOfLiablity

This function return cost of liablity.

Arguments
  • interestOnBorrowingsDeposits
  • totalBorrowingsDeposits
Returns
  • String
Example
var interestOnBorrowingsDeposits = 480000; 
var totalBorrowingsDeposits = 11000000; 
investor.costOfLiablity(interestOnBorrowingsDeposits, totalBorrowingsDeposits);  
// => 4.36%

netInterestMargin

This function return net interest margin.

Arguments
  • interestEarned
  • interestPaid
  • totalAssets
Returns
  • String
Example
 var interestEarned = 3;
var interestPaid = 1;
var totalAssets = 10;
investor.netInterestMargin(interestEarned, interestPaid, totalAssets);  
// => 20.00%

yieldOnAdvances

This function return yield on advances.

Arguments
  • interestEarned
  • advances
Returns
  • String
Example
 var interestEarned = 11872;
var advances = 88419;
investor.yieldOnAdvances(interestEarned, advances);  
// => 13.43%

ROA

This function return Return on Assets.

Arguments
  • netIncome
  • averageTotalAssets
Returns
  • String
Example
 var netIncome = 2286;
var averageTotalAssets = 142898;
investor.ROA(netIncome, averageTotalAssets);  
// => 1.60%

EVREVENUE

This function return enterprise value to revenue.

Arguments
  • enterpriseValue
  • revenue
Returns
  • String
Example
 var enterpriseValue = 50000000;
var revenue = 1000000;
investor.EVREVENUE(enterpriseValue, revenue);  
// => 50.00

enterpriseValue

This function return enterprise value to revenue.

Arguments
  • marketCap
  • netDebt
Returns
  • Number
Example
 var marketCap = 50000000;
var netDebt = 1000000;
investor.enterpriseValue(marketCap, netDebt);  
// => 51000000

marketCap

This function return Market Cap.

Arguments
  • marketPrice
  • commonShares
Returns
  • Number
Example
 var marketPrice = 50;
var commonShares = 1000000;
investor.marketCap(marketPrice, commonShares);  
// => 50000000

EVEBIT

This function return enterprise value to EBIT.

Arguments
  • enterpriseValue
  • EBIT
Returns
  • String
Example
 var enterpriseValue = 20000;
var EBIT = 10000;
investor.EVEBIT(enterpriseValue, EBIT);  
// => 2.00

EVEBITDA

This function return enterprise value to EBITDA.

Arguments
  • enterpriseValue
  • EBITDA
Returns
  • String
Example
 var enterpriseValue = 20000;
var EBITDA = 10000;
investor.EVEBITDA(enterpriseValue, EBITDA);  
// => 2.00

operatingCashFlowRatio

This function return operating cashflow ratio.

Arguments
  • operatingCashflow
  • totalLiablities
Returns
  • String
Example
 var operatingCashflow = 150000;
var totalLiablities = 120000;
investor.operatingCashFlowRatio(operatingCashflow , totalLiablities);  
// => 1.25

CAPEXToOperatingCashRatio

This function return capex to operating cash ratio.

Arguments
  • capex
  • operatingCashflow
Returns
  • String
Example
 var capex = 1000;
var operatingCashflow = 2000;
investor.CAPEXToOperatingCashRatio(capex , operatingCashflow);  
// => 0.50

timesInterestEarnedRatio

This function return timesInterestEarnedRatio.

Arguments
  • EBIT
  • interestExpense
Returns
  • String
Example
 var EBIT = 500000;
var interestExpense = 50000;
investor.timesInterestEarnedRatio(EBIT , interestExpense);  
// => 10.00

assetTurnoverRatio

This function return assets to turnover ratio.

Arguments
  • netSales
  • totalAssets
Returns
  • String
Example
 var netSales = 100000;
var totalAssets = 1200000;
investor.assetTurnoverRatio(netSales , totalAssets);  
// => 8.33%

debtRatio

This function return debt ratio.

Arguments
  • totalLiablities
  • totalAssets
Returns
  • String
Example
 var totalLiablities = 4000;
var totalAssets = 15036;
investor.debtRatio(totalLiablities , totalAssets);  
// => 26.60%

equityRatio

This function return equity ratio.

Arguments
  • shareholdersEquity
  • totalAssets
Returns
  • String
Example
 var shareholdersEquity = 65000;
var totalAssets = 100000;
investor.equityRatio(shareholdersEquity , totalAssets);  
// => 65.00%

debtToEquityRatio

This function return debt to equity ratio.

Arguments
  • totalDebt
  • shareholdersEquity
Returns
  • String
Example
 var totalDebt = 107219;
var shareholdersEquity = 182055;
investor.debtToEquityRatio(totalDebt , shareholdersEquity);  
// => .59

netProfitMargin

This function return net profit margin.

Arguments
  • netProfit
  • revenue
Returns
  • String
Example
 var netProfit = 30;
var revenue = 500;
investor.netProfitMargin(netProfit, revenue);  
// => 6.00%

operatingProfitMargin

This function return operating profit margin.

Arguments
  • operatingProfit
  • revenue
Returns
  • String
Example
 var operatingProfit = 170000;
var revenue = 510000;
investor.operatingProfitMargin(operatingProfit, revenue);  
// => 33.33%

grossMarginRatio

This function return gross margin ratio.

Arguments
  • totalRevenue
  • COGS
Returns
  • String
Example
 var totalRevenue = 102007;
var COGS = 39023;
investor.grossMarginRatio(totalRevenue, COGS);  
// => 61.74%

capitalEmployed

This function return capital employed.

Arguments
  • totalAssets
  • currentLiablities
Returns
  • String
Example
 var totalAssets = 102007;
var currentLiablities = 39023;
investor.capitalEmployed(totalAssets, currentLiablities);  
// => 400000.00

ROCE

This function return the return on capital employed.

Arguments
  • Ebit
  • capitalEmployed
Returns
  • String
Example
 var Ebit = 30000;
var capitalEmployed = 200000;
investor.ROCE(ebit, capitalEmployed);  
// => 15.00%

ROIC

This function return the return on invested capital.

Arguments
  • netIncome
  • investedCapital
Returns
  • String
Example
 var netIncome = 3521 ;
var investedCapital = 541;
investor.ROIC(netIncome, investedCapital);  
// => 650.83%

ROE

This function return the return on invested capital.

Arguments
  • netIncome
  • shareholdersEquity
Returns
  • String
Example
 var netIncome = 80000;
var shareholdersEquity = 80400;
investor.ROE(netIncome, shareholdersEquity);  
// => 99.50%