1.0.3 • Published 1 year ago

roblox-tax-calculator v1.0.3

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

roblox-tax-calculator

A simple npm package to calculate the tax amount for Roblox transactions. Roblox takes a 30% tax on transactions made through its platform. This package helps you quickly calculate the net amount after deducting the tax.

Installation

To install roblox-tax-calculator, simply run the following npm command:

npm install roblox-tax-calculator

Usage

Using roblox-tax-calculator is straightforward. Here's an example of how to use it in your JavaScript code:

const calculateRobloxTax = require('roblox-tax-calculator');

// Calculate tax for a given amount
const taxInfo = calculateRobloxTax(1000);

console.log(taxInfo);
/*
Output:
{ netAmount: 1000, grossAmount: 1429, taxAmount: 429 }
*/

The calculateRobloxTax function takes the transaction amount as input and returns an object with detailed tax information:

  • netAmount: The original transaction amount.
  • grossAmount: The number after tax.
  • taxAmount: The calculated tax amount based on the default tax rate of 30%.

License

This project is licensed under the MIT License.

Contact?

You can join my Discord Community server or DM me HERE .

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago