Giter VIP home page Giter VIP logo

furusato-tax's Introduction

ふるさと納税限度額計算ライブラリ

寄付者の収入や家族構成等をもとに、ふるさと納税が全額控除される寄付金額を計算するnpmライブラリです。

ふるさと納税制度については、総務省のふるさと納税ポータルサイト等を参照して下さい。

インストール方法

npmまたはyarnを用いてインストールできます。

// with npm
$ npm install furusato-tax

// with yarn
$ yarn add furusato-tax

利用方法

詳細版のシミュレーション

import { FurusatoTax } from "furusato-tax";

const house = new FurusatoTax({ selfSalary: 10_000_000 });
console.log(house.minimumSelfPayThreshold()); //=> 225852

収入と家族構成のみで計算する簡易版シミュレーション (参考: 総務省|ふるさと納税ポータルサイト|ふるさと納税のしくみ|税金の控除について)

import { minimumSelfPayThresholdEasySimulation, FamilyType } from "furusato-tax";
console.log(minimumSelfPayThresholdEasySimulation(10_000_000, FamilyType.Single)); //=> 176000

貢献の仕方

本リポジトリに提案や修正がある場合は、IssueやPull Requestを作成して下さい。

開発環境の構築方法

$ yarn install
$ yarn run prepare

テスト実行方法

$ yarn run test

License

本ソフトウェアは、Apache-2.0ライセンスのもとで提供されています。

furusato-tax's People

Contributors

s2terminal avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.