node package manager
Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

costtime

costtime

Cost per Hour * Time Spent - Contracting Calculator

Install

$ npm install costtime --save

Usage

const costtime = require('costtime')
const hourlyRate = 50
const timeSpent = '12h42m'
 
let charge = costtime(hourlyRate, timeSpent)
 
console.log('£' + charge)

Licence

MIT © Ben Evans