Skip to content
This repository has been archived by the owner on Nov 8, 2022. It is now read-only.
/ margin-calc Public archive
forked from thisiskeith/margin-calc

Utility for calculating gross profit, gross margin percentage, and markup percentage

Notifications You must be signed in to change notification settings

bigrentz/margin-calc

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

margin-calc

Utility for calculating gross profit, gross margin percentage, and markup percentage

Usage

Gross profit

margincalc.grossProfit(revenue, cost);

Gross margin percentage

margincalc.grossMarginPercentage(revenue, cost[, precision]);

Mark up percentage

margincalc.markUpPercentage(revenue, cost[, precision]);

Installation

The easiest way to get started is to add the following to your package.json dependencies

{
    "dependencies": {
        "margin-calc": "git+ssh://[email protected]:thisiskeith/margin-calc.git",
    }
}

Install the package

npm install

Require in your application

var margincalc = require('margin-calc');

About

Utility for calculating gross profit, gross margin percentage, and markup percentage

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%