# due-date-calculator

> calculate due dates of for bugs

Latest version **1.0.1** (published 2016-11-24) · MIT license · 0 weekly downloads

## Install

```sh
npm install due-date-calculator
pnpm add due-date-calculator
yarn add due-date-calculator
bun add due-date-calculator
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2016-11-24 |
| First published | 2016-11-24 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | @gellerthegyi |
| Maintainers | gerhardberger |

## Links

- npm: https://www.npmjs.com/package/due-date-calculator
- Repository: https://github.com/gerhardberger/due-date-calculator
- Homepage: https://github.com/gerhardberger/due-date-calculator#readme
- Issues: https://github.com/gerhardberger/due-date-calculator/issues
- npm.io page: https://npm.io/package/due-date-calculator

## Recent versions

- 1.0.1 (latest) — 2016-11-24
- 1.0.0 — 2016-11-24

## README

# Due Date Calculator

[![Standard - JavaScript Style Guide](https://img.shields.io/badge/code%20style-standard-brightgreen.svg)](http://standardjs.com/) [![Build Status](https://travis-ci.org/gerhardberger/due-date-calculator.svg?branch=master)](https://travis-ci.org/gerhardberger/due-date-calculator)

Calculate due dates of bug reports with certain turnaround time.

``` js
const dueDateCalculator = require('due-date-calculator')

const submitDate = new Date('2016-11-22T14:40:00')
const turnaround = 16

console.log(dueDateCalculator(submitDate, turnaround))
// returns 2016.11.24. 14:40
```

## install

```
$ npm i due-date-calculator
```

## usage

#### `dueDateCalculator(submitDate, turnaround)`

- submitDate, `Date` - the submission date of the bug report, **required**
- turnaround, `Number` - the turnaround time of the bug report in *working
  hours*, **required**

Calculates the date, when the bug should be resolved.

## test

```
$ npm test
```

---
_Source: https://npm.io/package/due-date-calculator · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
