Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/arcorion/paycon
Pay converter - converts pay amounts between different time units
https://github.com/arcorion/paycon
Last synced: about 2 months ago
JSON representation
Pay converter - converts pay amounts between different time units
- Host: GitHub
- URL: https://github.com/arcorion/paycon
- Owner: arcorion
- License: gpl-3.0
- Created: 2022-08-06T04:51:42.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2022-08-11T22:36:15.000Z (almost 2 years ago)
- Last Synced: 2024-01-27T11:00:58.483Z (5 months ago)
- Language: Python
- Size: 37.1 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Lists
- cli-apps - paycon - Converts pay amounts between different time units. (<a name="financial"></a>Financial tools)
- awesome-cli-apps - paycon - Converts pay amounts between different time units. (<a name="financial"></a>Financial tools)
README
# paycon
Pay converter - converts pay amounts between different time units## Installation/Requirements
To install, you can either clone this package or just download the raw paycon.py file. Usage is typically something like:
python paycon.py 40000
orpython3 paycon.py 30
or
./paycon.py -w 20 -t h 18If running on a Linux system, you'll need to make the program executable.
chmod +x paycon.py
Unfortunately, I don't have a Windows system, so I can't give specific Windows instruction and cannot be sure of behavior, but I believe it should work fine in Windows.
The only requirement for paycon is [Python 3](https://www.python.org/downloads/).
## Help
usage: paycon.py [-h] [-t unit] [-w hours] rate [rate ...]
Converts pay value for different time units. If no time unit passed, guesses unit based on 0-120 for hour,
120.01-12000 for month, and 12000.01+ for year.
positional arguments:
rate amount paid per time period
options:
-h, --help show this help message and exit
-t unit, --time-unit unit
time unit for the passed pay amount(s)
-w hours, --working-hours hours
number of hours worked per week (default: 40)## Usage examples
$ ./paycon.py -w 30 -t h 30 40
Working 30.0 hours a week, based on hourly inputs:
in: $30.00 $40.00
hourly $30.00 $40.00
weekly $900.00 $1,200.00
monthly $3,910.71 $5,214.29
yearly $46,928.57 $62,571.43$ ./paycon.py 10000000
Working 40.0 hours a week, based on yearly inputs:
in: $10,000,000.00
hourly $4,794.52
weekly $191,780.82
monthly $833,333.33
yearly $10,000,000.00