Skip to content
A calculator to estimate the initial vehicle tax for a vehicle in the UK
JavaScript
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src
test
.editorconfig
.eslintignore
.eslintrc
.gitignore
.prettierrc
CHANGELOG.md
README.md
azure-pipelines.yml
index.d.ts
package.json
yarn.lock

README.md

UK Car Tax calculator

A node module to calculate vehicle tax rates for cars and vans in the UK based on the fuel type, engine size and when the vehicle was registered.

Build Status

Installation

npm install uk-car-tax-calculator

Usage

const calculateTax = require('uk-car-tax-calculator') // or es modules

const tax = calculateTax({
  registrationDate: new Date(2001, 3, 1),
  co2: 201,
  fuel: 'Hybrid'
})

console.log(tax) // prints 315

For a more comprehensive guide to usage check test/index.test.js

Contributing

PRs accepted, especially those concering updates to UK law.

This project is linted with eslint using prettier, and runs tests with jest - these will need to pass before any PR is accepted.

You can’t perform that action at this time.