node package manager
Stop writing boring code. Discover, share, and reuse within your team. 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